|
TPTP 4.1.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Event broker is used to accept incomming data from registered producers and reroute to registered consumers. This is running under a multi-threaded environment. Event broker implementations should create a queue to receive data coming from event producers.
| Method Summary | |
|---|---|
void |
addEventConsumer(IComponent con)
Adds the component that will be the consumer of the event data |
void |
flushAndTerminate()
Flush the events left in the queue to the consumers and terminate the broker. |
void |
queueEvents(java.lang.Object[] obj)
Queue the specified events for processing by the consumers |
void |
setNextBroker(IComponentBroker next)
Set the next component broker |
void |
start()
Start the component broker. |
| Method Detail |
public void addEventConsumer(IComponent con)
con - - consumer component of the datapublic void queueEvents(java.lang.Object[] obj)
obj - - array of event objects to add to the queue for processingpublic void setNextBroker(IComponentBroker next)
next - component brokerpublic void start()
public void flushAndTerminate()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
TPTP 4.1.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||