org.apache.muse.ws.dm.muws.remote
Class MetricsClient
java.lang.Object
org.apache.muse.core.AbstractResourceClient
org.apache.muse.ws.resource.remote.WsResourceClient
org.apache.muse.ws.dm.muws.remote.MetricsClient
- All Implemented Interfaces:
- Traceable, org.apache.muse.ws.addressing.soap.SoapMonitor
public class MetricsClient
- extends WsResourceClient
MetricsClient provides two convenience methods for reading WSRP resource
properties and their metrics without resorting to separate SOAP calls or
DOM APIs. The user can provide a java.util.Map that will be filled with
the metric data in POJO form.
- Author:
- Dan Jemiolo (danj)
Constructor Summary |
MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination)
|
MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source)
|
MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source,
Environment environment)
|
MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source,
org.apache.muse.ws.addressing.soap.SoapClient soapClient)
|
Methods inherited from class org.apache.muse.ws.resource.remote.WsResourceClient |
deleteResourceProperty, destroy, getMultipleResourceProperties, getPropertyAsObject, getResourceProperty, getResourcePropertyDocument, insertResourceProperty, putResourcePropertyDocument, queryResourceProperties, setResourceProperties, setTerminationTime, updateResourceProperty |
Methods inherited from class org.apache.muse.core.AbstractResourceClient |
getDestination, getEndpointReference, getSoapClient, getSoapMonitorPort, getSource, getTraceWriter, invoke, invoke, invoke, invoke, isUsingSoapMonitor, isUsingTrace, setTrace, setTraceWriter, startSoapMonitor, stopSoapMonitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricsClient
public MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination)
MetricsClient
public MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source)
MetricsClient
public MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source,
Environment environment)
MetricsClient
public MetricsClient(org.apache.muse.ws.addressing.EndpointReference destination,
org.apache.muse.ws.addressing.EndpointReference source,
org.apache.muse.ws.addressing.soap.SoapClient soapClient)
getPropertyAsObjectAndMetrics
public Object getPropertyAsObjectAndMetrics(QName qname,
Class type,
Map metrics)
throws org.apache.muse.ws.addressing.soap.SoapFault
- This method is just like getPropertyAsObject() except that it will fill
the given Map with the metrics returned in the property XML. The ResetAt
metric (MuwsConstants.RESET_AT) is a java.util.Date, the LastUpdated
metrics (MuwsConstants.LAST_UPDATED) is a java.util.Date, and the Duration
metric (MuwsConstants.DURATION) is a java.lang.String. If there were no
property values, the Map will not be modified.
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
getResourcePropertyAndMetrics
public Element[] getResourcePropertyAndMetrics(QName qname,
Map metrics)
throws org.apache.muse.ws.addressing.soap.SoapFault
- This method is just like getResourceProperty() except that it will fill
the given Map with the metrics returned in the property XML. The ResetAt
metric (MuwsConstants.RESET_AT) is a java.util.Date, the LastUpdated
metrics (MuwsConstants.LAST_UPDATED) is a java.util.Date, and the Duration
metric (MuwsConstants.DURATION) is a java.lang.String. If there were no
property values, the Map will not be modified.
- Throws:
org.apache.muse.ws.addressing.soap.SoapFault
- See Also:
MuwsConstants
Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.