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 Details

    • ConnectionMonitor

      public ConnectionMonitor(Channel chnFld, ScadaCheckConnect.TestChannelList lstReqs)
      Create a new 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.
      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

      protected void finalize() throws Throwable
      Just in case, we remove all the links.
      Overrides:
      finalize in class Object
      Throws:
      Throwable
      Since:
      Mar 4, 2011
      See Also:
    • getChannel

      public Channel getChannel()
      Get the channel this monitor is servicing
      Returns:
      channel that this monitor is connected to
    • 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: