com.cloudtran.jmx
Class InMemoryOperationTimer

java.lang.Object
  extended by javax.management.StandardMBean
      extended by com.cloudtran.jmx.AbstractMBean
          extended by com.cloudtran.jmx.InMemoryOperationTimer
All Implemented Interfaces:
InMemoryOperationTimerMBean, DynamicMBean, MBeanRegistration

public class InMemoryOperationTimer
extends AbstractMBean
implements InMemoryOperationTimerMBean


Constructor Summary
InMemoryOperationTimer()
           
 
Method Summary
 void start()
          Starts the operation timer, logs into the memory.
 void startFor(int second)
           
 void stop()
          Stops the operation timer, dumps out the logs.
 
Methods inherited from class javax.management.StandardMBean
getAttribute, getAttributes, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryOperationTimer

public InMemoryOperationTimer()
                       throws NotCompliantMBeanException
Throws:
NotCompliantMBeanException
Method Detail

start

public void start()
Description copied from interface: InMemoryOperationTimerMBean
Starts the operation timer, logs into the memory.

Specified by:
start in interface InMemoryOperationTimerMBean

stop

public void stop()
Description copied from interface: InMemoryOperationTimerMBean
Stops the operation timer, dumps out the logs.

Specified by:
stop in interface InMemoryOperationTimerMBean

startFor

public void startFor(int second)
Specified by:
startFor in interface InMemoryOperationTimerMBean