org.apache.directmemory.measures
Class MonitorServiceImpl

java.lang.Object
  extended by org.apache.directmemory.measures.MonitorServiceImpl
All Implemented Interfaces:
MonitorService

public class MonitorServiceImpl
extends Object
implements MonitorService


Field Summary
static Map<String,MonitorServiceImpl> MONITORS
           
 String name
           
 
Constructor Summary
MonitorServiceImpl(String name)
           
 
Method Summary
 void addToTotalTime(long time)
           
 long average()
           
 void dump()
           
 void dump(String prefix)
           
 AtomicLong getHits()
           
 long getMax()
           
 long getMin()
           
 String getName()
           
 long getTotalTime()
           
 long hits()
           
 void setMax(long max)
           
 void setMin(long min)
           
 long start()
           
 long stop(long begunAt)
           
 String toString()
           
 long totalTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name

MONITORS

public static final Map<String,MonitorServiceImpl> MONITORS
Constructor Detail

MonitorServiceImpl

public MonitorServiceImpl(String name)
Method Detail

start

public long start()
Specified by:
start in interface MonitorService

stop

public long stop(long begunAt)
Specified by:
stop in interface MonitorService

hits

public long hits()
Specified by:
hits in interface MonitorService

totalTime

public long totalTime()
Specified by:
totalTime in interface MonitorService

average

public long average()
Specified by:
average in interface MonitorService

toString

public String toString()
Overrides:
toString in class Object

dump

public void dump(String prefix)
Specified by:
dump in interface MonitorService

dump

public void dump()
Specified by:
dump in interface MonitorService

getName

public String getName()
Specified by:
getName in interface MonitorService

getHits

public AtomicLong getHits()
Specified by:
getHits in interface MonitorService

getTotalTime

public long getTotalTime()
Specified by:
getTotalTime in interface MonitorService

addToTotalTime

public void addToTotalTime(long time)
Specified by:
addToTotalTime in interface MonitorService

getMin

public long getMin()
Specified by:
getMin in interface MonitorService

setMin

public void setMin(long min)
Specified by:
setMin in interface MonitorService

getMax

public long getMax()
Specified by:
getMax in interface MonitorService

setMax

public void setMax(long max)
Specified by:
setMax in interface MonitorService


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.