|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.dht.router.DHTRouterContactWrapper
public class DHTRouterContactWrapper
Constructor Summary | |
---|---|
DHTRouterContactWrapper(DHTRouterContact _contact)
|
Method Summary | |
---|---|
DHTRouterContactAttachment |
getAttachment()
|
protected DHTRouterContact |
getDelegate()
|
byte[] |
getID()
|
String |
getString()
|
long |
getTimeAlive()
time between first establishing the contact was alive and now, assuming that its not failing. |
boolean |
hasBeenAlive()
indicates whether or not a message has been received from, or an operation has successfully been made to, the contact. |
boolean |
isAlive()
Whether or not the contact's last interaction was successful |
boolean |
isBucketEntry()
Returns whether this router contact is in a bucket. |
boolean |
isFailing()
Whether or not the contact has failed once or more since last alive (if ever) |
boolean |
isReplacement()
Returns whether this router contact is a replacement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DHTRouterContactWrapper(DHTRouterContact _contact)
Method Detail |
---|
protected DHTRouterContact getDelegate()
public byte[] getID()
getID
in interface DHTRouterContact
public DHTRouterContactAttachment getAttachment()
getAttachment
in interface DHTRouterContact
public boolean hasBeenAlive()
DHTRouterContact
hasBeenAlive
in interface DHTRouterContact
public boolean isFailing()
DHTRouterContact
isFailing
in interface DHTRouterContact
public boolean isAlive()
DHTRouterContact
isAlive
in interface DHTRouterContact
public long getTimeAlive()
DHTRouterContact
getTimeAlive
in interface DHTRouterContact
public String getString()
getString
in interface DHTRouterContact
public boolean isBucketEntry()
DHTRouterContact
isBucketEntry
in interface DHTRouterContact
true
if in a bucket, false
otherwisepublic boolean isReplacement()
DHTRouterContact
isReplacement
in interface DHTRouterContact
true
if a replacement, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |