Project 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)
           
 EndpointMetric getEndpointMetric()
           
 InboundMetric getInboundMetric(String serviceName, String serviceParam)
           
 Iterator getInboundMetrics()
           
 ModuleClassID getModuleClassID()
           
 OutboundMetric getOutboundMetric(EndpointAddress endpointAddress)
           
 Iterator getOutboundMetrics()
           
 PropagationMetric getPropagationMetric(String serviceName, String serviceParam)
           
 Iterator getPropagationMetrics()
           
 void init(ModuleClassID moduleClassID)
           
 void initializeFrom(Element element)
           
 void mergeMetrics(ServiceMetric otherOne)
           
 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)
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

Parameters:
rendezvousServiceMonitorFilter - 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)
Specified by:
diffMetrics in interface ServiceMetric

clone

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

JXTA J2SE