public class LLNet extends OverlayImpl<GeoRegion,Location> implements OverlayListener<KeyRanges<LocationId>,LocationId>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static TransportId |
DEFAULT_TRANSPORT_ID |
isJoined, keyRegisterNONdefaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppersDEFAULT_APP_ID| コンストラクタと説明 |
|---|
LLNet(Overlay<? super KeyRanges<LocationId>,? super LocationId> sg) |
LLNet(TransportId transId,
Overlay<? super KeyRanges<LocationId>,? super LocationId> sg) |
addKey, addKey, getKeys, getKeys, getListener, join, 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, 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, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, setListener, setListenerpublic static TransportId DEFAULT_TRANSPORT_ID
public LLNet(Overlay<? super KeyRanges<LocationId>,? super LocationId> sg) throws IdConflictException, IOException
public LLNet(TransportId transId, Overlay<? super KeyRanges<LocationId>,? super LocationId> sg) throws IdConflictException, IOException
public void fin()
Transportpublic Endpoint getEndpoint()
TransportgetEndpoint インタフェース内 Transport<GeoRegion>public Class<?> getAvailableKeyType()
getAvailableKeyType インタフェース内 Overlay<GeoRegion,Location>getAvailableKeyType クラス内 OverlayImpl<GeoRegion,Location>public FutureQueue<?> request(ObjectId sender, ObjectId receiver, GeoRegion dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<GeoRegion>sender - 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 void onReceive(Overlay<KeyRanges<LocationId>,LocationId> trans, OverlayReceivedMessage<LocationId> rmsg)
onReceive インタフェース内 OverlayListener<KeyRanges<LocationId>,LocationId>public FutureQueue<?> onReceiveRequest(Overlay<KeyRanges<LocationId>,LocationId> trans, OverlayReceivedMessage<LocationId> rmsg)
onReceiveRequest インタフェース内 OverlayListener<KeyRanges<LocationId>,LocationId>public boolean join(Collection<? extends Endpoint> seeds) throws IOException
OverlayOverlayがすでにjoinな状態の場合は、joinは実行されずに、falseが返る。
join インタフェース内 Overlay<GeoRegion,Location>join クラス内 OverlayImpl<GeoRegion,Location>seeds - seedピアのリストIOException - join時に例外が発生した時public boolean leave()
throws IOException
Overlayleave インタフェース内 Overlay<GeoRegion,Location>leave クラス内 OverlayImpl<GeoRegion,Location>IOException - I/Oエラーが発生した場合protected void lowerAddKey(Location key) throws IOException
lowerAddKey クラス内 OverlayImpl<GeoRegion,Location>IOExceptionprotected void lowerRemoveKey(Location key) throws IOException
lowerRemoveKey クラス内 OverlayImpl<GeoRegion,Location>IOExceptionpublic boolean isJoined()
Overlaypublic Overlay<KeyRanges<LocationId>,LocationId> getLowerTransport()
Transportnull is returned.getLowerTransport インタフェース内 Transport<GeoRegion>getLowerTransport クラス内 TransportImpl<GeoRegion>public void onReceive(Transport<KeyRanges<LocationId>> trans, ReceivedMessage rmsg)
TransportListeneronReceive インタフェース内 OverlayListener<KeyRanges<LocationId>,LocationId>onReceive インタフェース内 TransportListener<KeyRanges<LocationId>>trans - Transportオブジェクトrmsg - ReceivedMessageオブジェクトpublic void onReceive(RequestTransport<KeyRanges<LocationId>> trans, ReceivedMessage rmsg)
public FutureQueue<?> onReceiveRequest(RequestTransport<KeyRanges<LocationId>> trans, ReceivedMessage rmsg)
Copyright © 2017. All rights reserved.