net.tomp2p.p2p
Class IdentityManagement
java.lang.Object
net.tomp2p.p2p.IdentityManagement
- All Implemented Interfaces:
- PeerStatusListener
public class IdentityManagement
- extends Object
- implements PeerStatusListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityManagement
public IdentityManagement(PeerAddress self)
checkIdentity
public boolean checkIdentity(Number160 peerId,
PublicKey publicKey)
peerOffline
public void peerOffline(PeerAddress peerAddress,
PeerStatusListener.Reason reason)
- Description copied from interface:
PeerStatusListener
- Called if the peer does not send multiple answer in time. This peer is considered offline
- Specified by:
peerOffline
in interface PeerStatusListener
- Parameters:
peerAddress
- The address of the peer that went offline
peerFail
public void peerFail(PeerAddress peerAddress,
boolean force)
- Description copied from interface:
PeerStatusListener
- Called if the peer does not send answer in time. The peer may be busy, so there is a chance of seeing this peer
again.
- Specified by:
peerFail
in interface PeerStatusListener
- Parameters:
peerAddress
- The address of the peer that failedforce
- Set to true if we are sure that the peer died.
peerOnline
public void peerOnline(PeerAddress peerAddress)
- Description copied from interface:
PeerStatusListener
- Called if the peer is online and we verified it. This method may get called many times, for each successful
request.
- Specified by:
peerOnline
in interface PeerStatusListener
- Parameters:
peerAddress
- The address of the peer that is online.
getSelf
public Number160 getSelf()
getPeerAddress
public PeerAddress getPeerAddress()
Copyright © 2013. All Rights Reserved.