Package org.jeyzer.publish
Interface JzrMonitorHandler
- 
public interface JzrMonitorHandlerEach JzrMonitor handler object :
- permits to fire, start, terminate and cancel Jeyzer monitoring events.
 - is specific to a source (application) and service (optional).
 
Handlers are obtained from the Jeyzer Publisher instance.
Started events must be either terminated or cancelled (if not already published).
Fired events are one shot and can be cancelled (if not already published).
Events get published upon Jeyzer Recorder data collection.
Started events can be published several times, until terminated. All other events get published only once.
Thread safe 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelEvent(JzrEvent event)Cancels the monitoring event registered through the event fire and start methods.booleanfireGlobalEvent(JzrEvent event)Fire the monitoring event at global level.booleanfireLocalThreadEvent(JzrEvent event)Fire the monitoring event at thread level.booleanfireSystemEvent(JzrEvent event)Fire the monitoring event at system level.booleanisTerminated(JzrEvent event)Checks if the given event is terminated.booleanisWaitingForPublication(JzrEvent event)Checks if the given event is waiting for Jeyzer recorder publication.booleanstartGlobalEvent(JzrEvent event)Start the monitoring event's life at global level.booleanstartLocalThreadEvent(JzrEvent event)Start the monitoring event's life at thread level.booleanterminateEvent(JzrEvent event)Terminates the monitoring event's life. 
 - 
 
- 
- 
Method Detail
- 
fireSystemEvent
boolean fireSystemEvent(JzrEvent event)
Fire the monitoring event at system level. Event lifetime covers for the whole recording Event is time stamped through current method call.- Parameters:
 event- the event to fire- Returns:
 - true if the event got fired
 
 
- 
fireGlobalEvent
boolean fireGlobalEvent(JzrEvent event)
Fire the monitoring event at global level. Event is oneshot and time stamped through current method call.- Parameters:
 event- the event to fire- Returns:
 - true if the event got fired
 
 
- 
fireLocalThreadEvent
boolean fireLocalThreadEvent(JzrEvent event)
Fire the monitoring event at thread level. Event is oneshot and time stamped through current method call.- Parameters:
 event- the event to fire- Returns:
 - true if the event got fired
 
 
- 
startGlobalEvent
boolean startGlobalEvent(JzrEvent event)
Start the monitoring event's life at global level. Event start time is time stamped through current method call Event lifetime must be terminated through the terminateEvent call.- Parameters:
 event- the event to fire- Returns:
 - true if the event got fired
 
 
- 
startLocalThreadEvent
boolean startLocalThreadEvent(JzrEvent event)
Start the monitoring event's life at thread level. Event start time is time stamped through current method call Event lifetime must be terminated through the terminateEvent call.- Parameters:
 event- the event to fire- Returns:
 - true if the event got fired
 
 
- 
terminateEvent
boolean terminateEvent(JzrEvent event)
Terminates the monitoring event's life.- Parameters:
 event- the original event to terminate- Returns:
 - true if the event got terminated
 
 
- 
cancelEvent
boolean cancelEvent(JzrEvent event)
Cancels the monitoring event registered through the event fire and start methods.- Parameters:
 event- the original event to cancel- Returns:
 - true if the event got cancelled
 
 
- 
isWaitingForPublication
boolean isWaitingForPublication(JzrEvent event)
Checks if the given event is waiting for Jeyzer recorder publication.- Parameters:
 event- the original event to check- Returns:
 - true if the given event is waiting for Jeyzer recorder publication
 
 
- 
isTerminated
boolean isTerminated(JzrEvent event)
Checks if the given event is terminated. Event is terminated if one shot, terminated or already published (not found)- Parameters:
 event- the original event to check- Returns:
 - true if the given event is terminated
 
 
 - 
 
 -