/** * This is a method that a monitor can use to notify the processor that it * is completed and should be processed. All monitors must call this method * in order to have themselves processed. * * @param monitor the Monitor that is ready to be processed */ public void process(Monitor monitor) { aggregator.aggregate(monitor); }
/** * This is a lifecycle method that a processor can use to initialize itself * when the MonitorProcessorFactory starts up. The processor factory passes * itself to the MonitorProcessor in case the processor needs to use some * service provided by the factory. */ public void startup() { aggregator.startup(); }
/** * This is a lifecycle method that a processor can use to close any * resources it created before the monitoring system shuts down. */ public void shutdown() { aggregator.shutdown(); }