eu.scape_project.watch.interfaces
Interface MonitorInterface

All Superinterfaces:
org.quartz.JobListener
All Known Implementing Classes:
CollectionProfilerMonitor

public interface MonitorInterface
extends org.quartz.JobListener

Interface that will be implemented by all Monitor components in the system.

Author:
kresimir

Method Summary
 void addWatchRequest(AsyncRequest aRequest)
          Adds AsyncRequest to the Monitor.
 String getGroup()
          Returns the name of a group that a specific Monitor monitors.
 void registerCentralMonitor(CentralMonitor cm)
          Registering CentralMonitor instance to a monitor instance.
 void registerScheduler(CoreScheduler cs)
          Register a CoreScheduler instance in to the Monitor instance.
 void removeWatchRequest(AsyncRequest aRequest)
          Removing AsyncRequest from the Monitor.
 
Methods inherited from interface org.quartz.JobListener
getName, jobExecutionVetoed, jobToBeExecuted, jobWasExecuted
 

Method Detail

registerCentralMonitor

void registerCentralMonitor(CentralMonitor cm)
Registering CentralMonitor instance to a monitor instance.

Parameters:
cm - - CentralMonitor

registerScheduler

void registerScheduler(CoreScheduler cs)
Register a CoreScheduler instance in to the Monitor instance. Soem Monitors will know how to reschedule AdaptorJob-s.

Parameters:
cs - - CoreScheduler

getGroup

String getGroup()
Returns the name of a group that a specific Monitor monitors.

Returns:

addWatchRequest

void addWatchRequest(AsyncRequest aRequest)
Adds AsyncRequest to the Monitor. Monitor can optionally configure its adaptors to meet the needs of a request.

Parameters:
aRequest - - AsyncRequest

removeWatchRequest

void removeWatchRequest(AsyncRequest aRequest)
Removing AsyncRequest from the Monitor.

Parameters:
aRequest - - AsyncRequest


Copyright © 2012. All Rights Reserved.