Package xal.smf.scada
Class ScadaCheckConnect.ConnectionMonitor
java.lang.Object
xal.smf.scada.ScadaCheckConnect.ConnectionMonitor
- All Implemented Interfaces:
ConnectionListener
- Enclosing class:
- ScadaCheckConnect
public static final class ScadaCheckConnect.ConnectionMonitor
extends Object
implements ConnectionListener
This class is used is a Channel Access connection monitor. When Channel
Access calls to report a channel connection, the monitor removes the
channel from the list of channels requesting confirmation (this list was
passed in at construction time).
- Since:
- Feb 4, 2011
- Author:
- Christopher K. Allen
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionMonitor
(Channel chnFld, ScadaCheckConnect.TestChannelList lstReqs) Create a newConnectionMonitor
object for monitoring the given channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Get the channel this monitor is servicing
-
Constructor Details
-
ConnectionMonitor
Create a newConnectionMonitor
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.- Parameters:
chnFld
- EPICS channel connecting to a field within the parameter set.lstReqs
- list of channels that have been requested to connect- Since:
- Feb 4, 2011
-
-
Method Details
-
finalize
Just in case, we remove all the links. -
getChannel
Get the channel this monitor is servicing- Returns:
- channel that this monitor is connected to
-
connectionMade
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- Specified by:
connectionMade
in interfaceConnectionListener
- Parameters:
channel
- The channel which has been connected.- Since:
- Feb 4, 2011
- See Also:
-
connectionDropped
Nothing really to do here - as a precaution we remove ourself from the channel's set of connection listeners. We should have been removed when the connection request was fulfilled. However, something wrong could have happened.- Specified by:
connectionDropped
in interfaceConnectionListener
- Parameters:
channel
- The channel which has been disconnected.- Since:
- Feb 4, 2011
- See Also:
-