JXTA

net.jxta.impl.endpoint.endpointMeter
Class EndpointServiceMetric

java.lang.Object
  extended by net.jxta.impl.endpoint.endpointMeter.EndpointServiceMetric
All Implemented Interfaces:
ServiceMetric, DocumentSerializable

public class EndpointServiceMetric
extends Object
implements ServiceMetric

Basic Service Metric EndpointService Monitoring


Constructor Summary
EndpointServiceMetric()
           
EndpointServiceMetric(ModuleClassID moduleClassID)
           
 
Method Summary
(package private)  void addInboundMetric(InboundMetric inboundMetric)
           
(package private)  void addOutboundMetric(OutboundMetric outboundMetric)
           
(package private)  void addPropagationMetric(PropagationMetric propagationMetric)
           
 Object clone()
           
 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
 void diffMetrics(ServiceMetric otherOne)
          Subtractively Remove Metrics from this Metric
 EndpointMetric getEndpointMetric()
           
 InboundMetric getInboundMetric(String serviceName, String serviceParam)
           
 Iterator<InboundMetric> getInboundMetrics()
           
 ModuleClassID getModuleClassID()
          getModuleClassID
 OutboundMetric getOutboundMetric(EndpointAddress endpointAddress)
           
 Iterator<OutboundMetric> getOutboundMetrics()
           
 PropagationMetric getPropagationMetric(String serviceName, String serviceParam)
           
 Iterator<PropagationMetric> getPropagationMetrics()
           
 void init(ModuleClassID moduleClassID)
          init
 void initializeFrom(Element element)
           
 void mergeMetrics(ServiceMetric otherOne)
          Additively Merge Metrics from this Metric
 void mergeMetrics(ServiceMetric otherOne, boolean includeEndpointMetrics, boolean includeInboundMetrics, boolean includeOutboundEndpointMetrics, boolean includePropagationMetrics)
           
 void serializeTo(Element element)
           
(package private)  void setEndpointMetric(EndpointMetric endpointMetric)
           
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointServiceMetric

public EndpointServiceMetric()

EndpointServiceMetric

public EndpointServiceMetric(ModuleClassID moduleClassID)
Method Detail

init

public void init(ModuleClassID moduleClassID)
Description copied from interface: net.jxta.meter.ServiceMetric
init

Specified by:
init in interface ServiceMetric

getModuleClassID

public ModuleClassID getModuleClassID()
Description copied from interface: net.jxta.meter.ServiceMetric
getModuleClassID

Specified by:
getModuleClassID in interface ServiceMetric
Returns:
ModuleClassID

addInboundMetric

void addInboundMetric(InboundMetric inboundMetric)

getInboundMetrics

public Iterator<InboundMetric> getInboundMetrics()

getInboundMetric

public InboundMetric getInboundMetric(String serviceName,
                                      String serviceParam)

getPropagationMetrics

public Iterator<PropagationMetric> getPropagationMetrics()

getPropagationMetric

public PropagationMetric getPropagationMetric(String serviceName,
                                              String serviceParam)

addPropagationMetric

void addPropagationMetric(PropagationMetric propagationMetric)

addOutboundMetric

void addOutboundMetric(OutboundMetric outboundMetric)

getOutboundMetrics

public Iterator<OutboundMetric> 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)
Description copied from interface: net.jxta.meter.ServiceMetric
Additively Merge Metrics from this Metric

Specified by:
mergeMetrics in interface ServiceMetric
Parameters:
otherOne - The metric being merged into this metric

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

Parameters:
endpointServiceMonitorFilter - Filter designates constituant parts to be included
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)
Description copied from interface: net.jxta.meter.ServiceMetric
Subtractively Remove Metrics from this Metric

Specified by:
diffMetrics in interface ServiceMetric
Parameters:
otherOne - The metric being removed into this metric

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

JXSE