Class EpicsChannelStatistics

java.lang.Object
ch.psi.wica.controlsystem.epics.channel.EpicsChannelStatistics
All Implemented Interfaces:
StatisticsCollectable

@ThreadSafe public class EpicsChannelStatistics extends Object implements StatisticsCollectable
Provides the statistics associated with an EPICS channel.
  • Constructor Details

    • EpicsChannelStatistics

      public EpicsChannelStatistics(String contextSpecifier, Map<EpicsChannelName,org.epics.ca.Channel<Object>> channels)
      Creates a new instance based on the supplied channel data.
      Parameters:
      contextSpecifier - a string specifying the context (for example polling or monitoring) associated with these statistics.
      channels - the channel map.
  • Method Details

    • get

      Returns the statistics associated with the collectable.
      Specified by:
      get in interface StatisticsCollectable
      Returns:
      the statistics.
    • reset

      public void reset()
      Resets the statistics.
      Specified by:
      reset in interface StatisticsCollectable
    • getChannels

      public List<String> getChannels()
      Returns the channel names.
      Returns:
      the channel names.
    • getUnconnectedChannels

      public List<String> getUnconnectedChannels()
      Returns the channel names that are currently unconnected.
      Returns:
      the channel names.
    • getCreateChannelRequests

      public String getCreateChannelRequests()
      Returns a string representation of the number of create channel requests.
      Returns:
      the result.
    • getRemoveChannelRequests

      public String getRemoveChannelRequests()
      Returns a string representation of the number of remove channel requests.
      Returns:
      the result.
    • getActiveRequests

      public String getActiveRequests()
      Returns a string representation of the number of channel requests that are currently active.
      Returns:
      the result.
    • getConnectedChannelCount

      public String getConnectedChannelCount()
      Returns a string representation of the number of connected channels.
      Returns:
      the result.
    • getNeverConnectedChannelCount

      public String getNeverConnectedChannelCount()
      Returns a string representation of the number of channels that have never connected.
      Returns:
      the result.
    • getDisconnectedChannelCount

      public String getDisconnectedChannelCount()
      Returns a string representation of the number of channels that are currently disconnected.
      Returns:
      the result.
    • getClosedChannelCount

      public String getClosedChannelCount()
      Returns a string representation of the number of channels that have been closed.
      Returns:
      the result.
    • incrementCreateMonitoredChannelRequests

      void incrementCreateMonitoredChannelRequests()
      Increments the count of create monitored channel requests.
    • incrementRemoveMonitoredChannelRequests

      void incrementRemoveMonitoredChannelRequests()
      Increments the count of removed monitored channel requests.