Package de.mhus.lib.core
Class MCount
- java.lang.Object
-
- de.mhus.lib.core.MLog
-
- de.mhus.lib.core.lang.MObject
-
- de.mhus.lib.core.jmx.JmxObject
-
- de.mhus.lib.core.jmx.MJmx
-
- de.mhus.lib.core.MCount
-
- All Implemented Interfaces:
ILog,JmxObjectMBean,MNlsProvider,Nls
- Direct Known Subclasses:
MCountWithDelay
public class MCount extends MJmx
-
-
Field Summary
Fields Modifier and Type Field Description protected longcntprotected booleanisClosed-
Fields inherited from class de.mhus.lib.core.jmx.JmxObject
jmxFixName, jmxName, jmxPackage, jmxType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()longgetFirstHitTime()doublegetHitsPerSecond()longgetLastHitTime()StringgetName()StringgetStatusAsString()longgetValue()voidinc()voidreset()StringtoString()-
Methods inherited from class de.mhus.lib.core.jmx.MJmx
jmxRegister
-
Methods inherited from class de.mhus.lib.core.jmx.JmxObject
createJmxObjectName, getJmxName, getJmxObjectName, getJmxPackage, getJmxType, isJmxFixName, isJmxRegistered, setJmxName, setJmxPackage, setJmxProxy, setJmxRegistered
-
-
-
-
Constructor Detail
-
MCount
public MCount()
-
MCount
public MCount(String name)
-
-
Method Detail
-
reset
public void reset()
-
inc
public void inc()
-
getValue
public long getValue()
-
getHitsPerSecond
public double getHitsPerSecond()
-
getName
public String getName()
-
getFirstHitTime
public long getFirstHitTime()
-
getLastHitTime
public long getLastHitTime()
-
getStatusAsString
public String getStatusAsString()
-
close
public void close()
-
-