Class EpicsChannelStatistics
java.lang.Object
ch.psi.wica.controlsystem.epics.channel.EpicsChannelStatistics
- All Implemented Interfaces:
StatisticsCollectable
Provides the statistics associated with an EPICS channel.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.psi.wica.model.app.StatisticsCollectable
StatisticsCollectable.Statistics, StatisticsCollectable.StatisticsItem
-
Constructor Summary
ConstructorsConstructorDescriptionEpicsChannelStatistics
(String contextSpecifier, Map<EpicsChannelName, org.epics.ca.Channel<Object>> channels) Creates a new instance based on the supplied channel data. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the statistics associated with the collectable.Returns a string representation of the number of channel requests that are currently active.Returns the channel names.Returns a string representation of the number of channels that have been closed.Returns a string representation of the number of connected channels.Returns a string representation of the number of create channel requests.Returns a string representation of the number of channels that are currently disconnected.Returns a string representation of the number of channels that have never connected.Returns a string representation of the number of remove channel requests.Returns the channel names that are currently unconnected.(package private) void
Increments the count of create monitored channel requests.(package private) void
Increments the count of removed monitored channel requests.void
reset()
Resets the statistics.
-
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 interfaceStatisticsCollectable
- Returns:
- the statistics.
-
reset
public void reset()Resets the statistics.- Specified by:
reset
in interfaceStatisticsCollectable
-
getChannels
Returns the channel names.- Returns:
- the channel names.
-
getUnconnectedChannels
Returns the channel names that are currently unconnected.- Returns:
- the channel names.
-
getCreateChannelRequests
Returns a string representation of the number of create channel requests.- Returns:
- the result.
-
getRemoveChannelRequests
Returns a string representation of the number of remove channel requests.- Returns:
- the result.
-
getActiveRequests
Returns a string representation of the number of channel requests that are currently active.- Returns:
- the result.
-
getConnectedChannelCount
Returns a string representation of the number of connected channels.- Returns:
- the result.
-
getNeverConnectedChannelCount
Returns a string representation of the number of channels that have never connected.- Returns:
- the result.
-
getDisconnectedChannelCount
Returns a string representation of the number of channels that are currently disconnected.- Returns:
- the result.
-
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.
-