public class PeerStatatistic extends Object implements Serializable
| Constructor and Description |
|---|
PeerStatatistic(PeerAddress peerAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
created() |
boolean |
equals(Object obj) |
int |
failed()
Increases the failed counter.
|
int |
hashCode() |
long |
lastSeenOnline() |
int |
onlineTime() |
PeerAddress |
peerAddress() |
PeerAddress |
peerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
int |
successfullyChecked()
Sets the time when last seen online to now.
|
int |
successfullyCheckedCounter() |
public PeerStatatistic(PeerAddress peerAddress)
peerAddress - The peer address that belongs to this statisticspublic int successfullyChecked()
public long lastSeenOnline()
public int successfullyCheckedCounter()
public int failed()
public long created()
public int onlineTime()
public PeerAddress peerAddress()
public PeerAddress peerAddress(PeerAddress peerAddress)
peerAddress - The updated peer IDCopyright © 2014. All rights reserved.