|
|||||||||
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.impl.DHTRouterContactImpl
public class DHTRouterContactImpl
Constructor Summary | |
---|---|
protected |
DHTRouterContactImpl(byte[] _node_id,
DHTRouterContactAttachment _attachment,
boolean _has_been_alive)
|
Method Summary | |
---|---|
DHTRouterContactAttachment |
getAttachment()
|
protected int |
getFailCount()
|
protected long |
getFirstAliveTime()
|
protected long |
getFirstFailOrLastAliveTime()
|
protected long |
getFirstFailTime()
|
byte[] |
getID()
|
protected long |
getLastAddedTime()
|
protected long |
getLastAliveTime()
|
protected boolean |
getPingOutstanding()
|
String |
getString()
|
protected void |
getString(StringBuilder sb)
|
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. |
protected boolean |
hasFailed()
|
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. |
void |
setAlive()
|
protected void |
setAttachment(DHTRouterContactAttachment _attachment)
|
void |
setBucketEntry()
|
protected boolean |
setFailed()
|
protected void |
setLastAddedTime(long l)
|
protected void |
setPingOutstanding(boolean b)
|
void |
setReplacement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DHTRouterContactImpl(byte[] _node_id, DHTRouterContactAttachment _attachment, boolean _has_been_alive)
Method Detail |
---|
public byte[] getID()
getID
in interface DHTRouterContact
public DHTRouterContactAttachment getAttachment()
getAttachment
in interface DHTRouterContact
protected void setAttachment(DHTRouterContactAttachment _attachment)
public void setAlive()
public boolean hasBeenAlive()
DHTRouterContact
hasBeenAlive
in interface DHTRouterContact
public boolean isAlive()
DHTRouterContact
isAlive
in interface DHTRouterContact
public boolean isFailing()
DHTRouterContact
isFailing
in interface DHTRouterContact
protected int getFailCount()
public long getTimeAlive()
DHTRouterContact
getTimeAlive
in interface DHTRouterContact
protected boolean setFailed()
protected boolean hasFailed()
protected long getFirstFailTime()
protected long getLastAliveTime()
protected long getFirstFailOrLastAliveTime()
protected long getFirstAliveTime()
protected long getLastAddedTime()
protected void setLastAddedTime(long l)
protected void setPingOutstanding(boolean b)
protected boolean getPingOutstanding()
public String getString()
getString
in interface DHTRouterContact
protected void getString(StringBuilder sb)
public boolean isBucketEntry()
DHTRouterContact
isBucketEntry
in interface DHTRouterContact
true
if in a bucket, false
otherwisepublic void setBucketEntry()
public boolean isReplacement()
DHTRouterContact
isReplacement
in interface DHTRouterContact
true
if a replacement, false
otherwisepublic void setReplacement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |