org.tango.server.monitoring
Class TangoStats

java.lang.Object
  extended by org.tango.server.monitoring.TangoStats
All Implemented Interfaces:
TangoMXBean

public class TangoStats
extends java.lang.Object
implements TangoMXBean

TODO: Error stats

Author:
abeille

Method Summary
 void addError()
           
 long addRequest(java.lang.String lastRequest)
           
 void endRequest(long id)
           
 long getAverageRequestDuration()
           
 long getErrorNr()
           
static TangoStats getInstance()
           
 java.lang.String getLastRequest()
           
 long getLastRequestDuration()
           
 java.lang.String getMaxRequest()
           
 long getMaxRequestDuration()
           
 long getMinRequestDuration()
           
 long getRequestsPerSecond()
           
 long getSeqNumber()
           
 java.lang.String getServerName()
           
 void resetStats()
           
 void setServerName(java.lang.String serverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2012-2016. All Rights Reserved.