org.apache.muse.ws.dm.muws.impl
Class MetricOnDemandListener

java.lang.Object
  extended by org.apache.muse.ws.dm.muws.impl.MetricOnDemandListener
All Implemented Interfaces:
PropertyReadListener

public class MetricOnDemandListener
extends Object
implements PropertyReadListener

MetricOnDemandListener is a simple property listener that makes sure an OnDemand metric's timestamps are updated for each property read that occurs. Because OnDemand metrics are collected on a need-to-know basis, we must update metric metadata to reflect new values even if they didn't come from a property insert/update/etc.

Author:
Dan Jemiolo (danj)

Constructor Summary
MetricOnDemandListener(Metric metric)
           
 
Method Summary
 QName getPropertyName()
           
 Element[] readRequested(Element[] properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricOnDemandListener

public MetricOnDemandListener(Metric metric)
Method Detail

getPropertyName

public QName getPropertyName()
Specified by:
getPropertyName in interface PropertyReadListener
Returns:
The name of the property to monitor.

readRequested

public Element[] readRequested(Element[] properties)
Specified by:
readRequested in interface PropertyReadListener
Parameters:
properties - The actual property values that will be returned to the caller at the end of the read operation. WS-RP collections should not pass copies of the values to a listener, since that prevents the ability to define dynamic property values (properties that constantly change and are only updated on read requests).


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.