|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.poller.plugins.JSDTEventProxy
The JSDTEventProxy implements the EventProxy to send an event to the events subsystem via JSDT
Field Summary | |
private com.sun.media.jsdt.Channel |
m_channel
The events source channel |
private com.sun.media.jsdt.Client |
m_client
The JSDT client that this identifies itself as |
private String |
m_clientID
The JSDT client identifier that the sender wants to use |
private boolean |
m_receiveSentEvent
A flag set by the user that indicates if the sender wants to receive the event being sent A 'true' indicates that the sender wants to receive the sent event A 'false' indicates that the sender only wants to send the event, not recieve it |
private com.sun.media.jsdt.Session |
m_session
The events JSDT session |
Constructor Summary | |
JSDTEventProxy()
The default constructor is not supported since a JSDT client identifer is a must |
|
JSDTEventProxy(String clientID)
Constructor |
|
JSDTEventProxy(String clientID,
boolean bReceiveSentEvent)
Constructor |
Method Summary | |
private void |
jsdtConnect()
Connect to the events session's source channel - the JSDT exceptions don't have their 'getMessage()' defined - so create a new exception for each |
static void |
main(String[] args)
Send a test event out to the events source channel |
void |
send(Event event)
Implements the EventProxy-> send() method to send the event to the events source channel |
Methods inherited from class java.lang.Object |
|
Field Detail |
private com.sun.media.jsdt.Session m_session
private com.sun.media.jsdt.Client m_client
private com.sun.media.jsdt.Channel m_channel
private String m_clientID
private boolean m_receiveSentEvent
Constructor Detail |
public JSDTEventProxy() throws UnsupportedOperationException
UnsupportedOperationException
- thrownpublic JSDTEventProxy(String clientID) throws com.sun.media.jsdt.JSDTException
clientID
- the JSDT client identifiercom.sun.media.jsdt.JSDTException
- thrown if the JSDT communication path cannot be set uppublic JSDTEventProxy(String clientID, boolean bReceiveSentEvent) throws com.sun.media.jsdt.JSDTException
clientID
- the JSDT client identifierrecieveSentEvent
- flag indicating if the sent event is also required to be receivedcom.sun.media.jsdt.JSDTException
- thrown if the JSDT communication path cannot be set upMethod Detail |
private void jsdtConnect() throws com.sun.media.jsdt.JSDTException
com.sun.media.jsdt.JSDTException
- thrown if the JSDT connection does not go throught for any reasonpublic void send(Event event) throws EventProxyException
send
in interface EventProxy
event
- the event to be sentEventProxyException
- thrown if the event cannot be sent for any reasonpublic static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |