public abstract class PeerLocator extends Object implements Endpoint
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static HashMap<Byte,Class<? extends PeerLocator>> |
magicMap |
| コンストラクタと説明 |
|---|
PeerLocator() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static PeerLocator |
deserialize(ByteBuffer bb) |
abstract RawTransport<? extends PeerLocator> |
newRawTransport(PeerId peerId)
このピアlocatorを使った通信をサポートするRawTransportを生成する。
|
boolean |
sameClass(PeerLocator target)
targetに指定されたPeerLocatorオブジェクトと同一のクラスであるときに
trueを返す。
|
abstract void |
serialize(ByteBuffer bb) |
protected static HashMap<Byte,Class<? extends PeerLocator>> magicMap
public static PeerLocator deserialize(ByteBuffer bb)
public abstract void serialize(ByteBuffer bb)
public abstract RawTransport<? extends PeerLocator> newRawTransport(PeerId peerId) throws IOException
peerId - the peerId of the peer object.IOException - an exception that occurs when there is I/O error.public boolean sameClass(PeerLocator target)
target - 比較対象となるPeerLocatorオブジェクトCopyright © 2017. All rights reserved.