Class EpicsChannelMetadataStatistics
java.lang.Object
ch.psi.wica.controlsystem.epics.metadata.EpicsChannelMetadataStatistics
- All Implemented Interfaces:
StatisticsCollectable
@ThreadSafe
public class EpicsChannelMetadataStatistics
extends Object
implements StatisticsCollectable
Provides the statistics associated with EPICS channel's metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.psi.wica.model.app.StatisticsCollectable
StatisticsCollectable.Statistics, StatisticsCollectable.StatisticsItem
-
Constructor Summary
ConstructorsConstructorDescriptionEpicsChannelMetadataStatistics
(List<EpicsChannelMetadataRequest> requestList) Creates a new instance based on the supplied channel metadata list. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the statistics associated with the collectable.Returns a string representation of the number of active channels.Returns a string representation of the number of connected channels.Returns the channel names.Returns a string representation of the number of start requests.Returns a string representation of the number of stop requests.(package private) void
Increments the count of connected channels.(package private) void
Increments the count of start requests.(package private) void
Increments the count of stop requests.void
reset()
Resets the statistics.
-
Constructor Details
-
EpicsChannelMetadataStatistics
Creates a new instance based on the supplied channel metadata list.- Parameters:
requestList
- the list.
-
-
Method Details
-
get
Description copied from interface:StatisticsCollectable
Returns the statistics associated with the collectable.- Specified by:
get
in interfaceStatisticsCollectable
- Returns:
- the statistics.
-
reset
public void reset()Description copied from interface:StatisticsCollectable
Resets the statistics.- Specified by:
reset
in interfaceStatisticsCollectable
-
getChannelNames
Returns the channel names.- Returns:
- the channel names.
-
getStartRequests
Returns a string representation of the number of start requests.- Returns:
- the result.
-
getStopRequests
Returns a string representation of the number of stop requests.- Returns:
- the result.
-
getActiveChannels
Returns a string representation of the number of active channels.- Returns:
- the result.
-
getChannelConnectCount
Returns a string representation of the number of connected channels.- Returns:
- the result.
-
incrementStartRequests
void incrementStartRequests()Increments the count of start requests. -
incrementStopRequests
void incrementStopRequests()Increments the count of stop requests. -
incrementChannelConnectCount
void incrementChannelConnectCount()Increments the count of connected channels.
-