public class SimpleFlooding<D extends Destination,K extends Key> extends OverlayImpl<D,K>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static TransportId |
DEFAULT_TRANSPORT_ID |
static int |
MAX_HOPS |
static int |
MAX_LINKS |
isJoined, keyRegisterNONdefaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppersDEFAULT_APP_ID| コンストラクタと説明 |
|---|
SimpleFlooding(ChannelTransport<?> trans) |
SimpleFlooding(TransportId transId,
ChannelTransport<?> trans) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
addKey(ObjectId upper,
K key)
指定されたkeyをオーバレイに登録する。
|
void |
fin()
Finalize the Transport object.
|
Endpoint |
getEndpoint()
Returns the local endpoint of the Transport.
|
boolean |
join(Collection<? extends Endpoint> seeds)
引数で指定されたseedのリストをseedピアとして、Overlayをjoinする。
|
boolean |
leave()
Overlayを不活性化(leave)する。
|
FutureQueue<?> |
onReceiveRequest(Collection<K> matchedKeys,
NestedMessage nmsg) |
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
Destination dst,
Object msg,
TransOptions opts)
Send a request message.
|
String |
showTable() |
addKey, getAvailableKeyType, getKeys, getKeys, getListener, isJoined, join, lowerAddKey, lowerRemoveKey, registerKey, removeKey, removeKey, request, request, request, request, request, request, request, request, request, request, selectOnReceive, send, send, send, send, setListener, singletonFutureQueue, singletonFutureQueue, toString0, unregisterKeycheckAndClearIsEasySend, getListener0, request, request, request, request, request, request, request, request, request, request, selectOnReceive, send, sendcheckActive, getBaseTransport, getDefaultAppId, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrequest, request, request, request, request, request, request, request, request, requestgetBaseTransport, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, setListener, setListenerpublic static TransportId DEFAULT_TRANSPORT_ID
public static int MAX_HOPS
public static int MAX_LINKS
public SimpleFlooding(ChannelTransport<?> trans) throws IdConflictException, IOException
public SimpleFlooding(TransportId transId, ChannelTransport<?> trans) throws IdConflictException, IOException
public void fin()
Transportfin インタフェース内 Transport<D extends Destination>fin クラス内 TransportImpl<D extends Destination>public Endpoint getEndpoint()
Transportpublic FutureQueue<?> request(ObjectId sender, ObjectId receiver, Destination dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
RequestTransportsender - the object ID of the sender.receiver - the object ID of the receiver.dst - the destination.msg - the request message.opts - the options.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public FutureQueue<?> onReceiveRequest(Collection<K> matchedKeys, NestedMessage nmsg)
public boolean addKey(ObjectId upper, K key) throws IOException
Overlay同一key が複数回登録される場合は、 key がすでにオーバレイに登録されていても、false は返らない。
null を key として登録することはできない。 引数に nullを指定した場合は、IllegalArgumentException が発生する。 引数が、実装クラスにとって適切な型でない場合は、 ClassCastException が発生する。 また、実装クラスがこのメソッドをサポートしない場合は、 UnsupportedOperationException が発生する。 実装クラス特有の例外が発生した場合は、IOExceptionのサブクラスとなる例外が発生する。
addKey インタフェース内 Overlay<D extends Destination,K extends Key>addKey クラス内 OverlayImpl<D extends Destination,K extends Key>upper - このオーバーレイを利用するエンティティのObjectIdkey - オーバレイに登録するkeyIOException - 実装クラス特有の例外が発生した場合public boolean join(Collection<? extends Endpoint> seeds) throws IOException
OverlayOverlayがすでにjoinな状態の場合は、joinは実行されずに、falseが返る。
join インタフェース内 Overlay<D extends Destination,K extends Key>join クラス内 OverlayImpl<D extends Destination,K extends Key>seeds - seedピアのリストIOException - join時に例外が発生した時public boolean leave()
throws IOException
Overlayleave インタフェース内 Overlay<D extends Destination,K extends Key>leave クラス内 OverlayImpl<D extends Destination,K extends Key>IOException - I/Oエラーが発生した場合public String showTable()
Copyright © 2017. All rights reserved.