クラス CompoundOverlay<D extends Destination,K extends Key>
java.lang.Object
org.piax.gtrans.impl.TransportImpl<D>
org.piax.gtrans.impl.RequestTransportImpl<D>
org.piax.gtrans.ov.impl.OverlayImpl<D,K>
org.piax.gtrans.ov.compound.CompoundOverlay<D,K>
- すべての実装されたインタフェース:
Closeable,AutoCloseable,Overlay<D,K>,OverlayListener<D,K>,RequestTransport<D>,Transport<D>,TransportListener<D>
public class CompoundOverlay<D extends Destination,K extends Key> extends OverlayImpl<D,K> implements OverlayListener<D,K>
An implementation of compound overlay
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classCompoundOverlay.PayloadOptionクラスから継承されたネストされたクラス/インタフェース org.piax.gtrans.impl.RequestTransportImpl
RequestTransportImpl.IsEasySend -
フィールドの概要
クラスから継承されたフィールド org.piax.gtrans.impl.TransportImpl
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peerId, transId, transIdPath, uppers -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 CompoundOverlay(Peer peer, List<TransportIdPath> overlays)CompoundOverlay(Peer peer, TransportId transId, List<TransportIdPath> overlays) -
メソッドの概要
クラスから継承されたメソッド org.piax.gtrans.ov.impl.OverlayImpl
addKey, addKeyAsync, addKeyAsync, getAvailableKeyType, getKeys, getKeys, getListener, isJoined, join, join, join, lowerAddKey, lowerAddKeyAsync, lowerRemoveKey, lowerRemoveKeyAsync, numOfRegisteredKey, registerKey, registerKey, removeKey, removeKeyAsync, removeKeyAsync, request, request, request, request, request, request, request, request, request, request, requestAsync, selectOnReceive, send, send, send, send, setListener, singletonFutureQueue, singletonFutureQueue, toString0, unregisterKey, unregisterKeyクラスから継承されたメソッド org.piax.gtrans.impl.RequestTransportImpl
checkAndClearIsEasySend, getListener0, request, request, request, request, request, request, request, request, request, request, requestAsync, selectOnReceive, sendクラスから継承されたメソッド org.piax.gtrans.impl.TransportImpl
checkActive, getBaseTransport, getDefaultAppId, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toStringクラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitインタフェースから継承されたメソッド org.piax.gtrans.ov.Overlay
requestAsync, requestAsync, requestAsync, requestAsync, requestAsyncインタフェースから継承されたメソッド org.piax.gtrans.RequestTransport
request, request, request, request, request, request, request, request, request, request, requestAsync, requestAsync, requestAsync, requestAsync, requestAsync, requestAsync, requestAsyncインタフェースから継承されたメソッド org.piax.gtrans.Transport
close, getBaseTransport, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, setListener, setListener
-
コンストラクタの詳細
-
CompoundOverlay
public CompoundOverlay(Peer peer, List<TransportIdPath> overlays) throws IdConflictException, IOException -
CompoundOverlay
public CompoundOverlay(Peer peer, TransportId transId, List<TransportIdPath> overlays) throws IdConflictException, IOException
-
-
メソッドの詳細
-
fin
public void fin()- 定義:
finインタフェース内Transport<D extends Destination>- オーバーライド:
finクラス内TransportImpl<D extends Destination>
-
getSpecifiedOverlays
このCompoundOverlayの生成時に指定されたOverlayを探し出すためのTransportIdPathのリストを返す。- 戻り値:
- Overlayを探し出すためのTransportIdPathのリスト
-
getEndpoint
- 定義:
getEndpointインタフェース内Transport<D extends Destination>
-
setGateway
public void setGateway(boolean isOn)複合オーバーレイのgateway機能をセットする。- パラメータ:
isOn- gateway機能をonする場合はtrue
-
addKey
- 定義:
addKeyインタフェース内Overlay<D extends Destination,K extends Key>- オーバーライド:
addKeyクラス内OverlayImpl<D extends Destination,K extends Key>- 例外:
IOException
-
removeKey
- 定義:
removeKeyインタフェース内Overlay<D extends Destination,K extends Key>- オーバーライド:
removeKeyクラス内OverlayImpl<D extends Destination,K extends Key>- 例外:
IOException
-
send
public void send(ObjectId sender, ObjectId receiver, D dst, Object msg) throws ProtocolUnsupportedException, IOException- 定義:
sendインタフェース内Transport<D extends Destination>- オーバーライド:
sendクラス内RequestTransportImpl<D extends Destination>- 例外:
ProtocolUnsupportedExceptionIOException
-
request
public FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
requestインタフェース内RequestTransport<D extends Destination>- 例外:
ProtocolUnsupportedExceptionIOException
-
request0
public FutureQueue<?> request0(ObjectId sender, ObjectId receiver, List<TransportIdPath> nextOvs, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException -
onReceive
- 定義:
onReceiveインタフェース内OverlayListener<D extends Destination,K extends Key>
-
onReceiveRequest
- 定義:
onReceiveRequestインタフェース内OverlayListener<D extends Destination,K extends Key>
-
join
- 定義:
joinインタフェース内Overlay<D extends Destination,K extends Key>- 定義:
joinクラス内OverlayImpl<D extends Destination,K extends Key>- 例外:
IOException
-
leave
- 定義:
leaveインタフェース内Overlay<D extends Destination,K extends Key>- 定義:
leaveクラス内OverlayImpl<D extends Destination,K extends Key>- 例外:
IOException
-
onReceive
- 定義:
onReceiveインタフェース内OverlayListener<D extends Destination,K extends Key>- 定義:
onReceiveインタフェース内TransportListener<D extends Destination>
-
onReceive
-
onReceiveRequest
-