Class EpicsChannelPollerStatistics
java.lang.Object
ch.psi.wica.controlsystem.epics.poller.EpicsChannelPollerStatistics
- All Implemented Interfaces:
StatisticsCollectable
@ThreadSafe
public class EpicsChannelPollerStatistics
extends Object
implements StatisticsCollectable
Provides statistics related to the EPICS channel pollers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.psi.wica.model.app.StatisticsCollectable
StatisticsCollectable.Statistics, StatisticsCollectable.StatisticsItem -
Constructor Summary
ConstructorsConstructorDescriptionEpicsChannelPollerStatistics(Map<EpicsChannelPollerRequest, EpicsChannelPollerPublisher.Poller> requestMap) Creates a new EPICS channel poller statistics collector. -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the statistics associated with the collectable.Returns the count of EPICS channel pollers that are currently active.Returns the count of connected EPICS channels.Returns the count of disconnected EPICS channels.Returns the names of the channels being polled.Returns the count of EPICS polling cycles.Returns the count of EPICS polling cycles that have been failed.Returns the count of EPICS polling cycles that have been successful.Returns the count of received EPICS channel poller start requests.Returns the count of received EPICS channel poller stop requests.(package private) voidIncrements the count of connected channels.(package private) voidIncrements the count of disconnected channels.(package private) voidIncrements the count of polling cycles.(package private) voidIncrements the count of start requests.(package private) voidIncrements the count of stop requests.voidreset()Resets the statistics.(package private) voidupdatePollingResult(boolean success) Updates the polling result statistics.
-
Constructor Details
-
EpicsChannelPollerStatistics
public EpicsChannelPollerStatistics(Map<EpicsChannelPollerRequest, EpicsChannelPollerPublisher.Poller> requestMap) Creates a new EPICS channel poller statistics collector.- Parameters:
requestMap- initial list of poller requests.
-
-
Method Details
-
get
Description copied from interface:StatisticsCollectableReturns the statistics associated with the collectable.- Specified by:
getin interfaceStatisticsCollectable- Returns:
- the statistics.
-
reset
public void reset()Description copied from interface:StatisticsCollectableResets the statistics.- Specified by:
resetin interfaceStatisticsCollectable
-
getChannelNames
Returns the names of the channels being polled.- Returns:
- the list.
-
getStartRequests
Returns the count of received EPICS channel poller start requests.- Returns:
- the result.
-
getStopRequests
Returns the count of received EPICS channel poller stop requests.- Returns:
- the result.
-
getActiveRequests
Returns the count of EPICS channel pollers that are currently active.- Returns:
- the result.
-
getChannelConnectCount
Returns the count of connected EPICS channels.- Returns:
- the result.
-
getChannelDisconnectCount
Returns the count of disconnected EPICS channels.- Returns:
- the result.
-
getPollCycleCount
Returns the count of EPICS polling cycles.- Returns:
- the result.
-
getPollSuccessCount
Returns the count of EPICS polling cycles that have been successful.- Returns:
- the result.
-
getPollFailureCount
Returns the count of EPICS polling cycles that have been failed.- 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. -
incrementChannelDisconnectCount
void incrementChannelDisconnectCount()Increments the count of disconnected channels. -
incrementPollCycleCount
void incrementPollCycleCount()Increments the count of polling cycles. -
updatePollingResult
void updatePollingResult(boolean success) Updates the polling result statistics.- Parameters:
success- token indicating whether the last poll attempt was successful.
-