|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.eventd.JSDTHandler
JSDTHandler handles all the events sent to Eventd via JSDT
It extends the PollerClient and implements the 'ChannelConsumer' interface to receive the events
Field Summary | |
private com.sun.media.jsdt.Channel |
m_channel
The JSDT channel on which eventd is listening for messages |
private boolean |
m_paused
Flag indicating that operation is to be paused For now events received are simply discarded during pause |
private PCQueue |
m_readerQ
queue to which the incoming event stream is to be added |
private static int |
numEventsRcvd
|
Constructor Summary | |
JSDTHandler(PCQueue readerQ)
Creates a JSDTHandler for eventd |
Method Summary | |
void |
dataReceived(com.sun.media.jsdt.Data data)
If operation is not paused, add the incoming event to the 'listenerQ' as an input stream. |
private void |
jsdtConnect()
Connect to the eventd JSDT channel |
void |
pauseOperation()
Pause the operation - ignore the received messages? |
void |
resumeOperation()
Resume the paused operation |
void |
shutdown()
Removes itself as a consumer for the JSDT session and closes the session |
Methods inherited from class java.lang.Object |
|
Field Detail |
private PCQueue m_readerQ
private com.sun.media.jsdt.Channel m_channel
private boolean m_paused
private static int numEventsRcvd
Constructor Detail |
public JSDTHandler(PCQueue readerQ)
readerQ
- The where EventsReader objects are placed.java.lang.RunTimeException
- Thrown if connection to JSDT failsMethod Detail |
private void jsdtConnect() throws com.sun.media.jsdt.JSDTException
InterruptedException
- Thrown if the running
thread is interrupted by another thread.public void pauseOperation()
public void resumeOperation()
public void shutdown()
Removes itself as a consumer for the JSDT session and closes the session
public void dataReceived(com.sun.media.jsdt.Data data)
dataReceived
in interface com.sun.media.jsdt.ChannelConsumer
data
- received JSDT data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |