de.is24.util.monitoring.status
Class ServiceState
java.lang.Object
de.is24.util.monitoring.status.ServiceState
public class ServiceState
- extends Object
this class implements a service state from observing two counters
and calculating a failure rate for different time windows.
Current windows are 1min, 5min, 15min.
Therefor it samples the counters every 10 seconds.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
private static final org.apache.log4j.Logger LOGGER
name
private final String name
successCounterKey
private final String successCounterKey
errorCounterKey
private final String errorCounterKey
previousSuccessCounterValue
private long previousSuccessCounterValue
previousErrorCounterValue
private long previousErrorCounterValue
successCounter
private Counter successCounter
errorCounter
private Counter errorCounter
sampledData
private SampledData sampledData
ServiceState
public ServiceState(String name,
String successCounterKey,
String errorCounterKey)
check
public void check()
checkForReportable
public void checkForReportable(Reportable reportable)
getName
public String getName()
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.