|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.discovery.components.DiscCapsdReceiver
DiscCapsdReceiver is the thread that handles JSDT communication from capsd. It adds the received IP addresses to the 'knownNodes'
Inner Class Summary | |
private class |
DiscCapsdReceiver.DiscCapsdConsumer
The JSDT channel consumer that receives messages from the capabilities poller and other potential interfaces that discovery new interfaces. |
Field Summary | |
private com.sun.media.jsdt.Channel |
m_channel
The actual channel between the discovery process and the capabilities poller. |
private PollerClient |
m_client
The client class for the JSDT registry to work correctly. |
private DiscCapsdReceiver.DiscCapsdConsumer |
m_consumer
The consumer that reads in the new addresses from the capabilities process. |
private Set |
m_knownNodes
The set of known interfaces. |
private boolean |
m_paused
The current status of either paused or normal. |
private com.sun.media.jsdt.Session |
m_session
The JSDT session on which messages are sent. |
Constructor Summary | |
DiscCapsdReceiver(Set knownNodes)
Creates a new discovery capabilities bridge that receives new node notification from capsd. |
Method Summary | |
void |
close()
Closes the connection to the JSDT session and channel. |
private boolean |
jsdtConnect(String clientName)
Connect to the discovery-capsd JSDT channel. |
void |
pause()
Pauses the recipt of messages from the JSDT channel. |
void |
resume()
Resumes the receipt of messages from the JSDT channel. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Set m_knownNodes
private volatile boolean m_paused
private PollerClient m_client
private com.sun.media.jsdt.Session m_session
private com.sun.media.jsdt.Channel m_channel
private DiscCapsdReceiver.DiscCapsdConsumer m_consumer
Constructor Detail |
public DiscCapsdReceiver(Set knownNodes)
Creates a new discovery capabilities bridge that receives new node notification from capsd. When a notification is received it is parsed and then added to the list of known nodes.
knownNodes
- The set containing the known interfaces.Method Detail |
private boolean jsdtConnect(String clientName) throws InterruptedException
clientName
- The name of this clientInterruptedException
- Thrown if the running
thread is interrupted by another thread.public void resume()
Resumes the receipt of messages from the JSDT channel.
public void pause()
Pauses the recipt of messages from the JSDT channel. All messages will be discarded.
public void close()
Closes the connection to the JSDT session and channel.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |