net.jxta.impl.endpoint.endpointMeter
Class EndpointServiceMetric
java.lang.Object
net.jxta.impl.endpoint.endpointMeter.EndpointServiceMetric
- All Implemented Interfaces:
- DocumentSerializable, ServiceMetric
- public class EndpointServiceMetric
- extends Object
- implements ServiceMetric
Basic Service Metric EndpointService Monitoring
EndpointServiceMetric
public EndpointServiceMetric()
EndpointServiceMetric
public EndpointServiceMetric(ModuleClassID moduleClassID)
init
public void init(ModuleClassID moduleClassID)
- Specified by:
init
in interface ServiceMetric
getModuleClassID
public ModuleClassID getModuleClassID()
- Specified by:
getModuleClassID
in interface ServiceMetric
addInboundMetric
void addInboundMetric(InboundMetric inboundMetric)
getInboundMetrics
public Iterator getInboundMetrics()
getInboundMetric
public InboundMetric getInboundMetric(String serviceName,
String serviceParam)
getPropagationMetrics
public Iterator getPropagationMetrics()
getPropagationMetric
public PropagationMetric getPropagationMetric(String serviceName,
String serviceParam)
addPropagationMetric
void addPropagationMetric(PropagationMetric propagationMetric)
addOutboundMetric
void addOutboundMetric(OutboundMetric outboundMetric)
getOutboundMetrics
public Iterator getOutboundMetrics()
getOutboundMetric
public OutboundMetric getOutboundMetric(EndpointAddress endpointAddress)
getEndpointMetric
public EndpointMetric getEndpointMetric()
setEndpointMetric
void setEndpointMetric(EndpointMetric endpointMetric)
serializeTo
public void serializeTo(Element element)
throws DocumentSerializationException
- Specified by:
serializeTo
in interface DocumentSerializable
- Throws:
DocumentSerializationException
initializeFrom
public void initializeFrom(Element element)
throws DocumentSerializationException
- Specified by:
initializeFrom
in interface DocumentSerializable
- Throws:
DocumentSerializationException
mergeMetrics
public void mergeMetrics(ServiceMetric otherOne)
- Specified by:
mergeMetrics
in interface ServiceMetric
deepCopy
public EndpointServiceMetric deepCopy(EndpointServiceMonitorFilter endpointServiceMonitorFilter)
- Make a deep copy of this metric only including the portions designated in the Filter
The resulting metric is Safe to modify without danger to the underlying Monitor Metrics
- Returns:
- a copy of this metric with references to the designated parts
mergeMetrics
public void mergeMetrics(ServiceMetric otherOne,
boolean includeEndpointMetrics,
boolean includeInboundMetrics,
boolean includeOutboundEndpointMetrics,
boolean includePropagationMetrics)
shallowCopy
public EndpointServiceMetric shallowCopy(EndpointServiceMonitorFilter endpointServiceMonitorFilter)
- Make a shallow copy of this metric only including the portions designated in the Filter
Note: since this is a shallow copy it is dangerous to modify the submetrics
- Parameters:
endpointServiceMonitorFilter
- Filter designates constituant parts to be included
- Returns:
- a copy of this metric with references to the designated parts
diffMetrics
public void diffMetrics(ServiceMetric otherOne)
- Specified by:
diffMetrics
in interface ServiceMetric
clone
public Object clone()
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException