Project JXTA

net.jxta.impl.endpoint.endpointMeter
Class EndpointMetric

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

public class EndpointMetric
extends Object
implements DocumentSerializable

Aggregate Metric for Endpoint Monitoring


Constructor Summary
EndpointMetric()
           
EndpointMetric(EndpointMetric prototype)
           
 
Method Summary
(package private)  void demuxMessageProcessed()
           
(package private)  void discardedLoopbackDemuxMessage()
           
(package private)  void errorProcessingIncomingMessage()
           
 int getDemuxMessageProcessed()
          The number of messages that were processed through demux
 int getDiscardedLoopbackDemuxMessage()
          The number of messages that were discarded because of loopback detection
 long getEndpointStartTime()
          Get the time this Endpoint was created, essentially the boot time of the PeerGroup
 long getEndpointUpTime()
          Get the time this Endpoint has been up
 int getErrorProcessingIncomingMessage()
          The number of messages whose local listeners threw exceptions
 int getIncomingMessageFilteredOut()
          The number of messages that were discarded because of filtering
 int getIncomingMessageSentToEndpointListener()
          The number of messages that sent to registered listeners
 int getInvalidIncomingMessage()
          The number of messages received that had invalid formats
 int getNoDestinationAddressForDemuxMessage()
          The number of messages that couldn't be demuxed because there was no destination address
 int getNoListenerForIncomingMessage()
          The number of messages received that had no listeners
 int getNoSourceAddressForDemuxMessage()
          The number of messages that couldn't be demuxed because there was no source address
(package private)  void incomingMessageFilteredOut()
           
(package private)  void incomingMessageSentToEndpointListener()
           
 void initializeFrom(Element element)
           
(package private)  void invalidIncomingMessage()
           
 void mergeMetrics(EndpointMetric other)
           
(package private)  void noDestinationAddressForDemuxMessage()
           
(package private)  void noListenerForIncomingMessage()
           
(package private)  void noSourceAddressForDemuxMessage()
           
 void serializeTo(Element element)
           
(package private)  void setEndpointUpTime(long endpointUpTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointMetric

public EndpointMetric()

EndpointMetric

public EndpointMetric(EndpointMetric prototype)
Method Detail

invalidIncomingMessage

void invalidIncomingMessage()

noListenerForIncomingMessage

void noListenerForIncomingMessage()

errorProcessingIncomingMessage

void errorProcessingIncomingMessage()

noDestinationAddressForDemuxMessage

void noDestinationAddressForDemuxMessage()

noSourceAddressForDemuxMessage

void noSourceAddressForDemuxMessage()

discardedLoopbackDemuxMessage

void discardedLoopbackDemuxMessage()

incomingMessageFilteredOut

void incomingMessageFilteredOut()

incomingMessageSentToEndpointListener

void incomingMessageSentToEndpointListener()

demuxMessageProcessed

void demuxMessageProcessed()

setEndpointUpTime

void setEndpointUpTime(long endpointUpTime)

getEndpointStartTime

public long getEndpointStartTime()
Get the time this Endpoint was created, essentially the boot time of the PeerGroup


getEndpointUpTime

public long getEndpointUpTime()
Get the time this Endpoint has been up


getInvalidIncomingMessage

public int getInvalidIncomingMessage()
The number of messages received that had invalid formats


getNoListenerForIncomingMessage

public int getNoListenerForIncomingMessage()
The number of messages received that had no listeners


getErrorProcessingIncomingMessage

public int getErrorProcessingIncomingMessage()
The number of messages whose local listeners threw exceptions


getNoDestinationAddressForDemuxMessage

public int getNoDestinationAddressForDemuxMessage()
The number of messages that couldn't be demuxed because there was no destination address


getNoSourceAddressForDemuxMessage

public int getNoSourceAddressForDemuxMessage()
The number of messages that couldn't be demuxed because there was no source address


getDiscardedLoopbackDemuxMessage

public int getDiscardedLoopbackDemuxMessage()
The number of messages that were discarded because of loopback detection


getIncomingMessageFilteredOut

public int getIncomingMessageFilteredOut()
The number of messages that were discarded because of filtering


getIncomingMessageSentToEndpointListener

public int getIncomingMessageSentToEndpointListener()
The number of messages that sent to registered listeners


getDemuxMessageProcessed

public int getDemuxMessageProcessed()
The number of messages that were processed through demux


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(EndpointMetric other)

JXTA J2SE