Package xal.smf.scada
Class BatchConnectionTest.ConnectionMonitor
java.lang.Object
xal.smf.scada.BatchConnectionTest.ConnectionMonitor
- All Implemented Interfaces:
ConnectionListener
- Enclosing class:
- BatchConnectionTest
public final class BatchConnectionTest.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
Constructors -
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.
-
Constructor Details
-
ConnectionMonitor
public ConnectionMonitor()
-
-
Method Details
-
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:
-