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 Details

    • ConnectionMonitor

      public ConnectionMonitor()
  • Method Details

    • connectionMade

      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

      Specified by:
      connectionMade in interface ConnectionListener
      Parameters:
      channel - The channel which has been connected.
      Since:
      Feb 4, 2011
      See Also:
    • connectionDropped

      public void connectionDropped(Channel channel)
      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 interface ConnectionListener
      Parameters:
      channel - The channel which has been disconnected.
      Since:
      Feb 4, 2011
      See Also: