public class PeerStatistic extends Object implements Serializable
| Constructor and Description |
|---|
PeerStatistic(PeerAddress peerAddress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
created() |
boolean |
equals(Object obj) |
int |
failed()
Increases the failed counter.
|
int |
hashCode() |
boolean |
isLocal() |
long |
lastSeenOnline() |
PeerStatistic |
local() |
int |
onlineTime() |
PeerAddress |
peerAddress() |
PeerAddress |
peerAddress(PeerAddress peerAddress)
Set the peer address only if the previous peer address that had the same peer ID.
|
PeerStatistic |
setLocal(boolean local) |
int |
successfullyChecked()
Sets the time when last seen online to now.
|
int |
successfullyCheckedCounter() |
public PeerStatistic(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 IDpublic PeerStatistic local()
public boolean isLocal()
public PeerStatistic setLocal(boolean local)
Copyright © 2014. All rights reserved.