|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--viceroy.LookupMessageStatisticsImpl
A simple implementation class of LookupMessageStatistics
| Field Summary | |
private LookupState |
lookupState
|
private ViceroyPeer |
peer
|
private long |
time
|
private Relative |
type
|
| Constructor Summary | |
LookupMessageStatisticsImpl(ViceroyPeer _peer)
Creates the first in path |
|
LookupMessageStatisticsImpl(ViceroyPeer _peer,
Relative _type,
LookupState _lookupState)
a constructor |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
true if this equals other |
Relative |
getConnectionType()
Gets the type of the connection that this peer function as, to the previous one, and caused the mesaage sending to this peer. |
LookupState |
getLookupState()
Gets the state of the lookup |
ViceroyPeer |
getPeer()
Gets the visited peer |
long |
getVisitTime()
Gets the time that this peer was visited, as returned from System.currentTimeMillis() |
int |
hashCode()
returns the hashcode |
java.lang.String |
toString()
tostring |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private ViceroyPeer peer
private Relative type
private long time
private LookupState lookupState
| Constructor Detail |
public LookupMessageStatisticsImpl(ViceroyPeer _peer,
Relative _type,
LookupState _lookupState)
_peer - the peer_type - the type of relative_lookupState - the state of the lookuppublic LookupMessageStatisticsImpl(ViceroyPeer _peer)
_peer - the first peer in path| Method Detail |
public ViceroyPeer getPeer()
getPeer in interface MessageStatisticspublic Relative getConnectionType()
getConnectionType in interface MessageStatisticsConnectionpublic long getVisitTime()
getVisitTime in interface MessageStatisticspublic LookupState getLookupState()
getLookupState in interface LookupMessageStatisticsLookupStatepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother -
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||