com.aelitis.azureus.core.dht.router
Interface DHTRouterContact

All Known Implementing Classes:
DHTRouterContactImpl, DHTRouterContactWrapper

public interface DHTRouterContact

Author:
parg

Method Summary
 DHTRouterContactAttachment getAttachment()
           
 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.
 

Method Detail

getID

byte[] getID()

getAttachment

DHTRouterContactAttachment getAttachment()

hasBeenAlive

boolean hasBeenAlive()
indicates whether or not a message has been received from, or an operation has successfully been made to, the contact.

Returns:

isFailing

boolean isFailing()
Whether or not the contact has failed once or more since last alive (if ever)

Returns:

isAlive

boolean isAlive()
Whether or not the contact's last interaction was successful

Returns:

getTimeAlive

long getTimeAlive()
time between first establishing the contact was alive and now, assuming that its not failing. 0 -> failing

Returns:

getString

String getString()

isBucketEntry

boolean isBucketEntry()
Returns whether this router contact is in a bucket.

Returns:
true if in a bucket, false otherwise

isReplacement

boolean isReplacement()
Returns whether this router contact is a replacement.

Returns:
true if a replacement, false otherwise