|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Interface containing methods to register and manage receivers with the notifier, place an event through the notifier, and manage the event dispatching to the agent threads.
| Method Summary | |
void |
addEvent(EventReceiver rec,
CybeleEvent ev)
The method used by the receivers to place an event with the Notifier |
java.lang.String |
addReceiver(EventReceiver rec)
It registers an EventReceiver and that EventReceiver is entitled to send |
void |
clearEvents()
This method clears all the unprocessed events. |
void |
clearReceivers()
It removes all the current EventReceivers, but allows creation of new ones |
java.lang.String |
getId()
Returns the unique Id of this Notifier |
boolean |
isPaused()
It queries if the Notifier is paused |
boolean |
isPaused(EventReceiver rec)
It queries if the EventReceiver rec is paused |
boolean |
isSuspended()
It queries if the Notifier is paused |
boolean |
isSuspended(EventReceiver rec)
It queries if the EventReceiver rec is suspended |
void |
pause()
It instructs all the current and future receivers to stop sending events. |
void |
pause(EventReceiver rec)
It instructs the EventReceiver rec to stop sending events. |
void |
removeReceiver(EventReceiver rec)
It removes the EventReceiver. |
void |
removeReceiver(java.lang.String recvId)
It removes the EventReceiver. |
void |
renew()
It renews the receivers. |
void |
renew(EventReceiver rec)
It renews the EventReceiver rec, if it has been suspended. |
void |
resume()
It resumes forwarding of events from receivers to the AgentThread. |
void |
resume(EventReceiver rec)
It resumes forwarding of events from the EventReceiver rec toe the AgentThread |
void |
start()
Starts creation of receivers, if it has been stopped |
void |
stop()
It removes all the current EventReceivers and does not allow creation of new receivers until start is called |
void |
suspend()
It instructs the receivers to stop generating events. |
void |
suspend(EventReceiver rec)
It instructs the EventReceiver rec to stop generating events. |
| Method Detail |
public java.lang.String getId()
public java.lang.String addReceiver(EventReceiver rec)
rec - The EventReceiver to be registeredpublic void removeReceiver(EventReceiver rec)
rec - The EventReceiver that may be removedpublic void removeReceiver(java.lang.String recvId)
recvId - The Id of the receiver to be removedpublic void clearReceivers()
public void stop()
public void start()
public void pause()
public void pause(EventReceiver rec)
rec to stop sending events.
The semantics of this pause is same as previous page except that it
affects the CybeleEvents generated by the receiver recrec - The EventReceiver that may be pausedpublic boolean isPaused()
public boolean isPaused(EventReceiver rec)
rec is pausedrec is pausedpublic void resume()
public void resume(EventReceiver rec)
rec - The EventReceiver that may be resumedpublic void suspend()
public void suspend(EventReceiver rec)
rec to stop generating events.
The semantics of this suspend is same as the previous one ecept that it
affects only the EventReceiver recrec - The EventReceiver that may be suspendedpublic boolean isSuspended()
public boolean isSuspended(EventReceiver rec)
rec is suspendedrec is suspended
public void renew()
throws java.lang.IllegalStateException
public void renew(EventReceiver rec)
rec, if it has been suspended.
The semantics of this method is same as previous renew method.rec - The EventReceiver that may be renewed
public void addEvent(EventReceiver rec,
CybeleEvent ev)
rec - The EventReceiver that generates the CybeleEvent evev - The CybeleEvent generated by the receiver recpublic void clearEvents()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||