intarsys runtime library

de.intarsys.tools.monitor
Class MonitorSample

java.lang.Object
  extended by de.intarsys.tools.monitor.AbstractMonitorSample
      extended by de.intarsys.tools.monitor.MonitorSample
All Implemented Interfaces:
ISample

public class MonitorSample
extends AbstractMonitorSample

A generic sample object.

Samples may be further refactored so that we do not need explicit objects here.


Constructor Summary
MonitorSample(AbstractMonitorTrace trace, String description, long value)
           
 
Method Summary
 String getFormattedValue()
           
 long getValue()
          The sample's value.
 
Methods inherited from class de.intarsys.tools.monitor.AbstractMonitorSample
getDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorSample

public MonitorSample(AbstractMonitorTrace trace,
                     String description,
                     long value)
Method Detail

getFormattedValue

public String getFormattedValue()

getValue

public long getValue()
Description copied from interface: ISample
The sample's value.

Returns:
The sample's value.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.