|
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.RendezvousConnectionMetric
The metrics about a client peer's connection to a rendezvous
Field Summary | |
static String |
CONNECTED
|
static String |
CONNECTING
|
static String |
DISCONNECTED
|
static String |
REFUSED
|
Constructor Summary | |
RendezvousConnectionMetric()
|
|
RendezvousConnectionMetric(PeerID peerID)
|
|
RendezvousConnectionMetric(RendezvousConnectionMetric prototype)
|
Method Summary | |
(package private) void |
beginConnection(long transitionTime)
|
(package private) void |
connectionDisconnected(long transitionTime)
|
(package private) void |
connectionEstablished(long transitionTime,
long timeToConnectTime,
long lease)
|
(package private) void |
connectionRefused(long transitionTime)
|
boolean |
equals(Object obj)
|
long |
getBeginConnectionTime()
Get time began connecting to Rendezvous |
long |
getDisconnectTime()
Get time disconnected to Rendezvous |
long |
getLastLeaseRenewalTime()
Get Last Lease Renewal Time |
long |
getLease()
Get lease establised with Rendezvous |
int |
getNumConnectionsBegun()
Get Number of Connections begun with Rendezvous |
int |
getNumConnectionsEstablished()
Get Number of Connections established with Rendezvous |
int |
getNumConnectionsRefused()
Get Number of Connections refused by Rendezvous |
int |
getNumDisconnects()
Get Number of Disconnects |
int |
getNumLeaseRenewals()
Get Number of lease Renewals |
PeerID |
getPeerID()
Peer ID of Rendezvous |
String |
getState()
State of Client Rendezvous |
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 to Rendezvous |
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 |
getTotalTimesToConnect()
Get Sum of times it took to connect |
long |
getTransitionTime()
Get the time that it entered the current state |
int |
hashCode()
|
void |
initializeFrom(Element element)
|
boolean |
isConnected()
Is connected to Rendezvous |
boolean |
isConnecting()
Is connecting to Rendezvous |
boolean |
isDisconnected()
Have we disconnected fromthis Rendezvous |
(package private) void |
leaseRenewed(long lastLeaseRenewalTime,
long lease)
|
void |
mergeMetrics(RendezvousConnectionMetric otherRendezvousConnectionMetric)
|
void |
serializeTo(Element element)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONNECTING
public static final String CONNECTED
public static final String DISCONNECTED
public static final String REFUSED
Constructor Detail |
public RendezvousConnectionMetric()
public RendezvousConnectionMetric(PeerID peerID)
public RendezvousConnectionMetric(RendezvousConnectionMetric prototype)
Method Detail |
public PeerID getPeerID()
public String getState()
public long getTransitionTime()
public boolean isConnecting()
public long getBeginConnectionTime()
public boolean isConnected()
public long getTimeConnectionEstablished()
public long getLease()
public int getNumConnectionsBegun()
public int getNumConnectionsEstablished()
public int getNumConnectionsRefused()
public long getTotalTimesToConnect()
public long getLastLeaseRenewalTime()
public int getNumLeaseRenewals()
public int getNumDisconnects()
public long getDisconnectTime()
public boolean isDisconnected()
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 beginConnection(long transitionTime)
void connectionEstablished(long transitionTime, long timeToConnectTime, long lease)
void leaseRenewed(long lastLeaseRenewalTime, long lease)
void connectionRefused(long transitionTime)
void connectionDisconnected(long transitionTime)
public boolean equals(Object obj)
public int hashCode()
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(RendezvousConnectionMetric otherRendezvousConnectionMetric)
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |