public class PeerStatatistic extends Object implements Serializable
| Constructor and Description |
|---|
PeerStatatistic(PeerAddress peerAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
failed()
Increases the failed counter.
|
long |
getCreated() |
long |
getLastSeenOnline() |
PeerAddress |
getPeerAddress() |
int |
getSuccessfullyChecked() |
int |
onlineTime() |
PeerAddress |
setPeerAddress(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.
|
public PeerStatatistic(PeerAddress peerAddress)
peerAddress - The peer address that belongs to this statisticspublic int successfullyChecked()
public long getLastSeenOnline()
public int getSuccessfullyChecked()
public int failed()
public long getCreated()
public int onlineTime()
public PeerAddress getPeerAddress()
public PeerAddress setPeerAddress(PeerAddress peerAddress)
peerAddress - The updated peer IDCopyright © 2014. All rights reserved.