JXTA

net.jxta.impl.endpoint.endpointMeter
Class OutboundMetric

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

public class OutboundMetric
extends Object
implements DocumentSerializable

Metric corresponding to a message queue to for outbound messengers based upon an endpoint address


Constructor Summary
OutboundMetric()
           
OutboundMetric(OutboundMeter outboundMeter)
           
OutboundMetric(OutboundMetric prototype)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getAverageOutboundDropTime()
          The Average of the times in queue for all dropped messages
 long getAverageOutboundProcessTime()
          The Average of the times from sending to handling by messenger
 long getAverageTimeInOutboundQueue()
          The Average of the times in queue for all messages
 EndpointAddress getEndpointAddress()
          The Endpoint address for this outbound message queue
 int getNumOutboundDeQueued()
          The Number of Outbound Messages DeQueued
 int getNumOutboundDropped()
          The Number of Outbound Messages Dropped from Queue
 int getNumOutboundFailed()
          The Number of Outbound Messages Failed in sending
 int getNumOutboundProcessed()
          The Number of Outbound Messages Processed Successfully
 int getNumOutboundQueued()
          The Number of Outbound Messages Queued
 long getTimeInOutboundQueue()
          The Sum of the times in queue for all messages
 long getTimeOutboundToFail()
          The Sum of the times in queue for all failed messages
 long getTimeToDropOutbound()
          The Sum of the times in queue for all dropped messages
 long getTimeToProcessOutbound()
          The Sum of the times from sending to handling by messenger
 int hashCode()
           
 void initializeFrom(Element element)
           
 boolean matches(EndpointAddress otherAddress)
           
 void mergeMetrics(OutboundMetric other)
           
(package private)  void outboundMessageDeQueued(Message message, long time)
           
(package private)  void outboundMessageDropped(Message message, long time)
           
(package private)  void outboundMessageFailed(Message message, long time)
           
(package private)  void outboundMessageProcessed(Message message, long time)
           
(package private)  void outboundMessageQueued(Message message)
           
 void serializeTo(Element element)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundMetric

public OutboundMetric(OutboundMeter outboundMeter)

OutboundMetric

public OutboundMetric(OutboundMetric prototype)

OutboundMetric

public OutboundMetric()
Method Detail

getEndpointAddress

public EndpointAddress getEndpointAddress()
The Endpoint address for this outbound message queue


getNumOutboundQueued

public int getNumOutboundQueued()
The Number of Outbound Messages Queued


getNumOutboundDropped

public int getNumOutboundDropped()
The Number of Outbound Messages Dropped from Queue


getTimeToDropOutbound

public long getTimeToDropOutbound()
The Sum of the times in queue for all dropped messages


getNumOutboundDeQueued

public int getNumOutboundDeQueued()
The Number of Outbound Messages DeQueued


getTimeInOutboundQueue

public long getTimeInOutboundQueue()
The Sum of the times in queue for all messages


getNumOutboundProcessed

public int getNumOutboundProcessed()
The Number of Outbound Messages Processed Successfully


getTimeToProcessOutbound

public long getTimeToProcessOutbound()
The Sum of the times from sending to handling by messenger


getNumOutboundFailed

public int getNumOutboundFailed()
The Number of Outbound Messages Failed in sending


getTimeOutboundToFail

public long getTimeOutboundToFail()
The Sum of the times in queue for all failed messages


getAverageTimeInOutboundQueue

public long getAverageTimeInOutboundQueue()
The Average of the times in queue for all messages


getAverageOutboundDropTime

public long getAverageOutboundDropTime()
The Average of the times in queue for all dropped messages


getAverageOutboundProcessTime

public long getAverageOutboundProcessTime()
The Average of the times from sending to handling by messenger


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

matches

public boolean matches(EndpointAddress otherAddress)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

outboundMessageQueued

void outboundMessageQueued(Message message)

outboundMessageDropped

void outboundMessageDropped(Message message,
                            long time)

outboundMessageFailed

void outboundMessageFailed(Message message,
                           long time)

outboundMessageDeQueued

void outboundMessageDeQueued(Message message,
                             long time)

outboundMessageProcessed

void outboundMessageProcessed(Message message,
                              long time)

mergeMetrics

public void mergeMetrics(OutboundMetric other)

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

JXSE