Project JXTA

net.jxta.impl.resolver.resolverMeter
Class QueryDestinationMetric

java.lang.Object
  extended by net.jxta.impl.resolver.resolverMeter.QueryDestinationMetric
All Implemented Interfaces:
DocumentSerializable

public class QueryDestinationMetric
extends Object
implements DocumentSerializable

Metrics for a specific Query Destination for a specific handler


Constructor Summary
QueryDestinationMetric()
           
QueryDestinationMetric(PeerID pid)
           
QueryDestinationMetric(QueryDestinationMetric prototype)
           
 
Method Summary
 boolean equals(Object other)
           
(package private)  void errorWhileProcessingQuery()
           
(package private)  void errorWhileProcessingResponse()
           
 int getErrorsWhileProcessingQuery()
          Get Queries received but failing when processed locally
 int getErrorsWhileProcessingResponse()
          Get Responses received but failing when processed locally
 PeerID getPeerID()
           
 int getQueriesProcessed()
          Get Queries received and processed locally
 int getQueriesSentViaUnicast()
          Get Queries Sent via Unicast to this destinations
 int getQueryToUnregisteredHandler()
          Get Queries Recieved to this handler when not registered
 int getResponsesProcessed()
          Get Responses received and processed locally
 int getResponsesSentViaUnicast()
          Get Responses Sent via Unicast to this destinations
 int getResponseToUnregisteredHandler()
          Get Responses Recieved to this handler when not registered
 int hashCode()
           
 void initializeFrom(Element element)
           
 void mergeMetrics(QueryDestinationMetric otherQueryDestinationMetric)
           
(package private)  void queryProcessed()
           
(package private)  void querySentViaUnicast()
           
(package private)  void queryToUnregisteredHandler()
           
(package private)  void responseProcessed()
           
(package private)  void responseSentViaUnicast()
           
(package private)  void responseToUnregisteredHandler()
           
 void serializeTo(Element element)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryDestinationMetric

public QueryDestinationMetric(PeerID pid)

QueryDestinationMetric

public QueryDestinationMetric(QueryDestinationMetric prototype)

QueryDestinationMetric

public QueryDestinationMetric()
Method Detail

getPeerID

public PeerID getPeerID()

querySentViaUnicast

void querySentViaUnicast()

getQueriesSentViaUnicast

public int getQueriesSentViaUnicast()
Get Queries Sent via Unicast to this destinations


responseSentViaUnicast

void responseSentViaUnicast()

getResponsesSentViaUnicast

public int getResponsesSentViaUnicast()
Get Responses Sent via Unicast to this destinations


responseToUnregisteredHandler

void responseToUnregisteredHandler()

getResponseToUnregisteredHandler

public int getResponseToUnregisteredHandler()
Get Responses Recieved to this handler when not registered


responseProcessed

void responseProcessed()

getResponsesProcessed

public int getResponsesProcessed()
Get Responses received and processed locally


errorWhileProcessingResponse

void errorWhileProcessingResponse()

getErrorsWhileProcessingResponse

public int getErrorsWhileProcessingResponse()
Get Responses received but failing when processed locally


queryProcessed

void queryProcessed()

getQueriesProcessed

public int getQueriesProcessed()
Get Queries received and processed locally


queryToUnregisteredHandler

void queryToUnregisteredHandler()

getQueryToUnregisteredHandler

public int getQueryToUnregisteredHandler()
Get Queries Recieved to this handler when not registered


errorWhileProcessingQuery

void errorWhileProcessingQuery()

getErrorsWhileProcessingQuery

public int getErrorsWhileProcessingQuery()
Get Queries received but failing when processed locally


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(QueryDestinationMetric otherQueryDestinationMetric)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

JXTA J2SE