|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.rendezvousMeter.ClientConnectionMetric
public class ClientConnectionMetric
The rendezvous's metric for a client peer interacting with a it
Field Summary | |
---|---|
static String |
CONNECTED
|
static String |
DISCONNECTED
|
static String |
REFUSED
|
Constructor Summary | |
---|---|
ClientConnectionMetric()
|
|
ClientConnectionMetric(ClientConnectionMetric prototype)
|
|
ClientConnectionMetric(PeerID peerID)
|
Method Summary | |
---|---|
(package private) void |
clientConnectionDisconnected(boolean normal,
long transitionTime)
|
(package private) void |
clientConnectionEstablished(long transitionTime,
long lease)
|
(package private) void |
clientConnectionRefused(long transitionTime)
|
(package private) void |
clientLeaseRenewed(long lastLeaseRenewalTime,
long lease)
|
(package private) void |
errorAddingClient()
|
long |
getDisconnectTime()
Get time Connected |
long |
getLastLeaseRenewalTime()
Get Last Received Lease Renewal Time |
long |
getLease()
Get Lease time granted for last lease Renewal Request. |
int |
getNumConnectionsRefused()
Get number of refused connect/lease-renewal messages received from this peer |
int |
getNumConnects()
Get number of granted connect messages received from this peer |
int |
getNumDisconnects()
Get number of disconnect messages received from this peer |
int |
getNumErrorsAddingClient()
Get number of errors when attempting to add this peer as a client |
int |
getNumLeaseRenewals()
Get number of granted lease renewal messages received from this peer |
int |
getNumUnableToRespondToConnectRequest()
Get number of errors when attempting to respond to this peer's request |
PeerID |
getPeerID()
Peer ID of this Client Connection |
String |
getState()
State of Client Connection |
long |
getTimeConnected()
Get the duration of current connection relative to local clock (from transition time) Note: This assumes the clocks are in sync with the reporting peer |
long |
getTimeConnected(long adjustmentTime)
Get the duration of current connection until the specified time |
long |
getTimeConnectionEstablished()
Get time Connected |
long |
getTotalTimeConnected()
Get the total time this peer has been connected. |
long |
getTotalTimeConnected(long adjustmentTime)
Get the total time this peer has been connected. |
long |
getTransitionTime()
Get the time that it entered the current state |
void |
initializeFrom(Element element)
|
boolean |
isConnected()
Is this client connected |
boolean |
isDisconnected()
Is this client disconnected |
void |
mergeMetrics(ClientConnectionMetric otherClientConnectionMetric)
|
void |
serializeTo(Element element)
|
(package private) void |
unableToRespondToConnectRequest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONNECTED
public static final String DISCONNECTED
public static final String REFUSED
Constructor Detail |
---|
public ClientConnectionMetric()
public ClientConnectionMetric(PeerID peerID)
public ClientConnectionMetric(ClientConnectionMetric prototype)
Method Detail |
---|
public PeerID getPeerID()
public String getState()
public long getTransitionTime()
public boolean isConnected()
public long getTimeConnectionEstablished()
public long getDisconnectTime()
public boolean isDisconnected()
public long getLease()
getLastLeaseRenewalTime();
public long getLastLeaseRenewalTime()
getLease();
public int getNumConnects()
public int getNumLeaseRenewals()
public int getNumDisconnects()
public int getNumConnectionsRefused()
public int getNumErrorsAddingClient()
public int getNumUnableToRespondToConnectRequest()
public long getTotalTimeConnected()
getTotalTimeConnected(long)
public long getTotalTimeConnected(long adjustmentTime)
adjustmentTime
- The time of this metric will be adjusted to
getTotalTimeConnected()
public long getTimeConnected()
getTotalTimeConnected(long)
public long getTimeConnected(long adjustmentTime)
adjustmentTime
- The time of this metric will be computed until
getTimeConnected()
void clientConnectionEstablished(long transitionTime, long lease)
void clientLeaseRenewed(long lastLeaseRenewalTime, long lease)
void errorAddingClient()
void clientConnectionDisconnected(boolean normal, long transitionTime)
void unableToRespondToConnectRequest()
void clientConnectionRefused(long transitionTime)
public void serializeTo(Element element) throws DocumentSerializationException
serializeTo
in interface DocumentSerializable
DocumentSerializationException
public void initializeFrom(Element element) throws DocumentSerializationException
initializeFrom
in interface DocumentSerializable
DocumentSerializationException
public void mergeMetrics(ClientConnectionMetric otherClientConnectionMetric)
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |