D - The destination specification of the overlay.K - The key of the overlay.public interface Overlay<D extends Destination,K extends Destination> extends RequestTransport<D>
DEFAULT_APP_ID| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
addKey(K key) |
boolean |
addKey(ObjectId upper,
K key)
指定されたkeyをオーバレイに登録する。
|
Class<?> |
getAvailableKeyType() |
Set<K> |
getKeys() |
Set<K> |
getKeys(ObjectId upper) |
OverlayListener<D,K> |
getListener(ObjectId upper)
Return the registered TransportListener.
|
boolean |
isJoined()
overlayの状態(join/leave)を返す。
|
boolean |
join(Collection<? extends Endpoint> seeds)
引数で指定されたseedのリストをseedピアとして、Overlayをjoinする。
|
boolean |
join(Endpoint seed) |
boolean |
leave()
Overlayを不活性化(leave)する。
|
boolean |
removeKey(K key) |
boolean |
removeKey(ObjectId upper,
K key)
指定されたkeyをオーバレイから登録削除する。
|
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
String dstExp,
Object msg) |
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
String dstExp,
Object msg,
int timeout) |
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
String dstExp,
Object msg,
TransOptions opts) |
FutureQueue<?> |
request(ObjectId appId,
String dstExp,
Object msg) |
FutureQueue<?> |
request(ObjectId appId,
String dstExp,
Object msg,
TransOptions opts) |
FutureQueue<?> |
request(String dstExp,
Object msg) |
FutureQueue<?> |
request(String dstExp,
Object msg,
int timeout) |
FutureQueue<?> |
request(String dstExp,
Object msg,
TransOptions opts) |
FutureQueue<?> |
request(TransportId upperTrans,
String dstExp,
Object msg,
int timeout) |
void |
send(ObjectId sender,
ObjectId receiver,
String dstExp,
Object msg) |
void |
send(ObjectId appId,
String dstExp,
Object msg) |
void |
send(String dstExp,
Object msg) |
void |
send(TransportId upperTrans,
String dstExp,
Object msg) |
void |
setListener(ObjectId upper,
OverlayListener<D,K> listener) |
<E> FutureQueue<E> |
singletonFutureQueue(E value) |
<E> FutureQueue<E> |
singletonFutureQueue(E value,
Throwable t) |
request, request, request, request, request, request, request, request, request, request, requestfin, getBaseTransport, getEndpoint, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, setListener, setListenervoid setListener(ObjectId upper, OverlayListener<D,K> listener)
OverlayListener<D,K> getListener(ObjectId upper)
Transportupper is an ObjectId specified by the setListener.
If TransportListener is not registered, null is returned.getListener インタフェース内 Transport<D extends Destination>upper - The ObjectId of the receiver (upper layer) entity.Class<?> getAvailableKeyType()
<E> FutureQueue<E> singletonFutureQueue(E value)
<E> FutureQueue<E> singletonFutureQueue(E value, Throwable t)
void send(ObjectId sender, ObjectId receiver, String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionvoid send(TransportId upperTrans, String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionvoid send(ObjectId appId, String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionvoid send(String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(ObjectId sender, ObjectId receiver, String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(ObjectId sender, ObjectId receiver, String dstExp, Object msg, TransOptions opts) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(ObjectId sender, ObjectId receiver, String dstExp, Object msg, int timeout) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(ObjectId appId, String dstExp, Object msg, TransOptions opts) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(ObjectId appId, String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(String dstExp, Object msg) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(String dstExp, Object msg, int timeout) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(String dstExp, Object msg, TransOptions opts) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionFutureQueue<?> request(TransportId upperTrans, String dstExp, Object msg, int timeout) throws org.piax.common.dcl.parser.ParseException, ProtocolUnsupportedException, IOException
org.piax.common.dcl.parser.ParseExceptionProtocolUnsupportedExceptionIOExceptionboolean addKey(ObjectId upper, K key) throws IOException
同一key が複数回登録される場合は、 key がすでにオーバレイに登録されていても、false は返らない。
null を key として登録することはできない。 引数に nullを指定した場合は、IllegalArgumentException が発生する。 引数が、実装クラスにとって適切な型でない場合は、 ClassCastException が発生する。 また、実装クラスがこのメソッドをサポートしない場合は、 UnsupportedOperationException が発生する。 実装クラス特有の例外が発生した場合は、IOExceptionのサブクラスとなる例外が発生する。
upper - このオーバーレイを利用するエンティティのObjectIdkey - オーバレイに登録するkeyIOException - 実装クラス特有の例外が発生した場合IllegalArgumentException - keyに nullが指定された場合ClassCastException - 引数が適切な型でない場合UnsupportedOperationException - オーバレイがこのメソッドをサポートしていない場合boolean addKey(K key) throws IOException
IOExceptionboolean removeKey(ObjectId upper, K key) throws IOException
key がオーバレイに登録されていない場合は、falseが返る。 同一key が複数回登録される場合は、 addKey された回数と同じ回数だけremoveKeyが呼ばれないとkeyは削除されない。
null を key として指定することはできない。 引数に nullを指定した場合は、IllegalArgumentException が発生する。 引数が、実装クラスにとって適切な型でない場合は、 ClassCastException が発生する。 また、実装クラスがこのメソッドをサポートしない場合は、 UnsupportedOperationException が発生する。 実装クラス特有の例外が発生した場合は、IOExceptionのサブクラスとなる例外が発生する。
upper - このオーバーレイを利用するエンティティのObjectIdkey - オーバレイから登録削除するkeyIOException - 実装クラス特有の例外が発生した場合IllegalArgumentException - keyに nullが指定された場合ClassCastException - 引数が適切な型でない場合UnsupportedOperationException - オーバレイがこのメソッドをサポートしていない場合boolean removeKey(K key) throws IOException
IOExceptionboolean join(Endpoint seed) throws IOException
IOExceptionboolean join(Collection<? extends Endpoint> seeds) throws IOException
Overlayがすでにjoinな状態の場合は、joinは実行されずに、falseが返る。
seeds - seedピアのリストIOException - join時に例外が発生した時boolean leave()
throws IOException
IOException - I/Oエラーが発生した場合boolean isJoined()
Copyright © 2017. All rights reserved.