eu.scape_project.watch.monitor
Class CollectionProfilerMonitor

java.lang.Object
  extended by eu.scape_project.watch.monitor.CollectionProfilerMonitor
All Implemented Interfaces:
MonitorInterface, org.quartz.JobListener

public class CollectionProfilerMonitor
extends Object
implements MonitorInterface


Constructor Summary
CollectionProfilerMonitor()
           
 
Method Summary
 void addWatchRequest(AsyncRequest aRequest)
          Adds AsyncRequest to the Monitor.
 Collection<String> getAsyncRequestUUIDS()
           
 String getGroup()
          Returns the name of a group that a specific Monitor monitors.
 String getName()
           
 void jobExecutionVetoed(org.quartz.JobExecutionContext arg0)
           
 void jobToBeExecuted(org.quartz.JobExecutionContext arg0)
           
 void jobWasExecuted(org.quartz.JobExecutionContext arg0, org.quartz.JobExecutionException arg1)
           
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionProfilerMonitor

public CollectionProfilerMonitor()
Method Detail

getAsyncRequestUUIDS

public Collection<String> getAsyncRequestUUIDS()

getName

public String getName()
Specified by:
getName in interface org.quartz.JobListener

jobExecutionVetoed

public void jobExecutionVetoed(org.quartz.JobExecutionContext arg0)
Specified by:
jobExecutionVetoed in interface org.quartz.JobListener

jobToBeExecuted

public void jobToBeExecuted(org.quartz.JobExecutionContext arg0)
Specified by:
jobToBeExecuted in interface org.quartz.JobListener

jobWasExecuted

public void jobWasExecuted(org.quartz.JobExecutionContext arg0,
                           org.quartz.JobExecutionException arg1)
Specified by:
jobWasExecuted in interface org.quartz.JobListener

registerCentralMonitor

public void registerCentralMonitor(CentralMonitor cm)
Description copied from interface: MonitorInterface
Registering CentralMonitor instance to a monitor instance.

Specified by:
registerCentralMonitor in interface MonitorInterface
Parameters:
cm - - CentralMonitor

getGroup

public String getGroup()
Description copied from interface: MonitorInterface
Returns the name of a group that a specific Monitor monitors.

Specified by:
getGroup in interface MonitorInterface
Returns:

registerScheduler

public void registerScheduler(CoreScheduler cs)
Description copied from interface: MonitorInterface
Register a CoreScheduler instance in to the Monitor instance. Soem Monitors will know how to reschedule AdaptorJob-s.

Specified by:
registerScheduler in interface MonitorInterface
Parameters:
cs - - CoreScheduler

addWatchRequest

public void addWatchRequest(AsyncRequest aRequest)
Description copied from interface: MonitorInterface
Adds AsyncRequest to the Monitor. Monitor can optionally configure its adaptors to meet the needs of a request.

Specified by:
addWatchRequest in interface MonitorInterface
Parameters:
aRequest - - AsyncRequest

removeWatchRequest

public void removeWatchRequest(AsyncRequest aRequest)
Description copied from interface: MonitorInterface
Removing AsyncRequest from the Monitor.

Specified by:
removeWatchRequest in interface MonitorInterface
Parameters:
aRequest - - AsyncRequest


Copyright © 2012. All Rights Reserved.