org.tango.server.monitoring
Class TangoStats
java.lang.Object
org.tango.server.monitoring.TangoStats
- All Implemented Interfaces:
- TangoMXBean
public class TangoStats
- extends java.lang.Object
- implements TangoMXBean
TODO: Error stats
- Author:
- abeille
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static TangoStats getInstance()
resetStats
public void resetStats()
- Specified by:
resetStats
in interface TangoMXBean
setServerName
public void setServerName(java.lang.String serverName)
getServerName
public java.lang.String getServerName()
- Specified by:
getServerName
in interface TangoMXBean
getLastRequest
public java.lang.String getLastRequest()
- Specified by:
getLastRequest
in interface TangoMXBean
getRequestsPerSecond
public long getRequestsPerSecond()
- Specified by:
getRequestsPerSecond
in interface TangoMXBean
addRequest
public long addRequest(java.lang.String lastRequest)
getSeqNumber
public long getSeqNumber()
endRequest
public void endRequest(long id)
getLastRequestDuration
public long getLastRequestDuration()
- Specified by:
getLastRequestDuration
in interface TangoMXBean
getMaxRequest
public java.lang.String getMaxRequest()
- Specified by:
getMaxRequest
in interface TangoMXBean
getMaxRequestDuration
public long getMaxRequestDuration()
- Specified by:
getMaxRequestDuration
in interface TangoMXBean
getMinRequestDuration
public long getMinRequestDuration()
- Specified by:
getMinRequestDuration
in interface TangoMXBean
getAverageRequestDuration
public long getAverageRequestDuration()
- Specified by:
getAverageRequestDuration
in interface TangoMXBean
addError
public void addError()
getErrorNr
public long getErrorNr()
- Specified by:
getErrorNr
in interface TangoMXBean
getMaxRequestsPerSecond
public long getMaxRequestsPerSecond()
- Specified by:
getMaxRequestsPerSecond
in interface TangoMXBean
getAverageRequestsPerSecond
public long getAverageRequestsPerSecond()
- Specified by:
getAverageRequestsPerSecond
in interface TangoMXBean
getMinRequestsPerSecond
public long getMinRequestsPerSecond()
- Specified by:
getMinRequestsPerSecond
in interface TangoMXBean
Copyright © 2012-2017. All Rights Reserved.