org.globus.mds.usefulrp
Class AccumulatorResourceProperty

java.lang.Object
  extended byorg.globus.wsrf.impl.BaseResourceProperty
      extended byorg.globus.wsrf.impl.ReflectionResourceProperty
          extended byorg.globus.mds.usefulrp.AccumulatorResourceProperty
All Implemented Interfaces:
org.globus.wsrf.ResourceProperty

public class AccumulatorResourceProperty
extends org.globus.wsrf.impl.ReflectionResourceProperty

An MDS ResourceProperty that will allow services to easily publish metrics about their load.
This RP is specfically designed for measuring cumulative quantities (such as number of hits, number of bytes transferred), with the TODO ability to publish derived statistics such as average rate of change of the accumulator (which will provide, for example, hits/second or bytes/second).
Note that this RP implements no persistence (in order to have minimal dependencies on other configuration) but will TODO indicate in its output when it began making the present set of measurements.


Field Summary
 
Fields inherited from class org.globus.wsrf.impl.BaseResourceProperty
metaData
 
Constructor Summary
AccumulatorResourceProperty(QName name)
           
 
Method Summary
 void accumulate(long amount)
           
 Object getDynamicValue()
           
 
Methods inherited from class org.globus.wsrf.impl.ReflectionResourceProperty
add, clear, get, getValueSimple, initialize, isArray, isEmpty, iterator, remove, set, setObject, setPropertyName, size, toElements, toSOAPElements
 
Methods inherited from class org.globus.wsrf.impl.BaseResourceProperty
convert, convertObject, convertPrimitive, getMetaData, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumulatorResourceProperty

public AccumulatorResourceProperty(QName name)
                            throws Exception
Throws:
Exception - passes along any exception encountered during construction of underlying ReflectionResourceProperty.
Method Detail

getDynamicValue

public Object getDynamicValue()

accumulate

public void accumulate(long amount)


Copyright © 1999-2006 University of Chicago. All rights reserved.