public static final class ScadaCheckConnect.ConnectionMonitor extends java.lang.Object implements ConnectionListener
Constructor and Description |
---|
ConnectionMonitor(Channel chnFld,
ScadaCheckConnect.TestChannelList lstReqs)
Create a new
ConnectionMonitor object for monitoring
the given channel. |
Modifier and Type | Method and Description |
---|---|
void |
connectionDropped(Channel channel)
Nothing really to do here - as a precaution we remove ourself from
the channel's set of connection listeners.
|
void |
connectionMade(Channel channel)
The requested connection was made.
|
protected void |
finalize()
Just in case, we remove all the links.
|
Channel |
getChannel()
Get the channel this monitor is servicing
|
public ConnectionMonitor(Channel chnFld, ScadaCheckConnect.TestChannelList lstReqs)
ConnectionMonitor
object for monitoring
the given channel. The list of all channels being monitored is all
passed so that the given channel can be removed upon confirmation.chnFld
- EPICS channel connecting to a field within the parameter set.lstReqs
- list of channels that have been requested to connectprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
public Channel getChannel()
public void connectionMade(Channel channel)
The requested connection was made. Consequently,
⋅ We remove ourself from the channel's set of connection listeners
⋅ We remove the channel from the list of open requests
connectionMade
in interface ConnectionListener
channel
- The channel which has been connected.ConnectionListener.connectionMade(xal.ca.Channel)
public void connectionDropped(Channel channel)
connectionDropped
in interface ConnectionListener
channel
- The channel which has been disconnected.ConnectionListener.connectionDropped(xal.ca.Channel)