クラス PrimaryKey
java.lang.Object
org.piax.gtrans.netty.idtrans.PrimaryKey
- すべての実装されたインタフェース:
Serializable,Comparable<PrimaryKey>,ComparableKey<PrimaryKey>,Destination,Endpoint,Key,NettyEndpoint
- 直系の既知のサブクラス:
UdpPrimaryKey
public class PrimaryKey extends Object implements ComparableKey<PrimaryKey>, NettyEndpoint
- 関連項目:
- 直列化された形式
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 classPrimaryKey.NeighborEntry -
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected NettyLocatorlocatorstatic intMAX_NEIGHBORSprotected ComparableKey<?>rawKey -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 PrimaryKey(Comparable<?> o)PrimaryKey(ComparableKey<?> key)PrimaryKey(ComparableKey<?> key, NettyLocator locator)PrimaryKey(PeerLocator seed) -
メソッドの概要
修飾子とタイプ メソッド 説明 voidaddNeighbor(PrimaryKey key)intcompareTo(PrimaryKey o)booleanequals(Object o)StringgetHost()StringgetKeyString()NettyLocatorgetLocator()longgetLocatorVersion()List<PrimaryKey.NeighborEntry>getNeighbors()intgetPort()ComparableKey<?>getRawKey()inthashCode()voidmarkNeighborAlive(PrimaryKey key)voidmarkNeighborClosed(PrimaryKey key)PrimaryKeynewSameTypeEndpoint(String spec)static PrimaryKeyparse(String spec)voidsetLocator(NettyLocator locator)voidsetNeighbors(List<PrimaryKey.NeighborEntry> eps)voidsetRawKey(ComparableKey<?> rawKey)StringtoString()
-
フィールド詳細
-
MAX_NEIGHBORS
public static int MAX_NEIGHBORS -
rawKey
-
locator
-
-
コンストラクタの詳細
-
メソッドの詳細
-
parse
-
getLocator
-
setLocator
-
addNeighbor
-
setNeighbors
-
getNeighbors
-
getRawKey
-
setRawKey
-
markNeighborClosed
-
markNeighborAlive
-
compareTo
- 定義:
compareToインタフェース内Comparable<PrimaryKey>
-
newSameTypeEndpoint
- 定義:
newSameTypeEndpointインタフェース内Endpoint
-
equals
-
toString
-
hashCode
public int hashCode() -
getPort
public int getPort()- 定義:
getPortインタフェース内NettyEndpoint
-
getHost
- 定義:
getHostインタフェース内NettyEndpoint
-
getKeyString
- 定義:
getKeyStringインタフェース内NettyEndpoint
-
getLocatorVersion
public long getLocatorVersion()
-