パッケージ org.piax.gtrans.impl
クラス ChannelTransportImpl<E extends Endpoint>
java.lang.Object
org.piax.gtrans.impl.TransportImpl<E>
org.piax.gtrans.impl.ChannelTransportImpl<E>
- すべての実装されたインタフェース:
Closeable,AutoCloseable,ChannelTransport<E>,Transport<E>
- 直系の既知のサブクラス:
IdChannelTransport,NettyChannelTransport,UdpChannelTransport
public abstract class ChannelTransportImpl<E extends Endpoint> extends TransportImpl<E> implements ChannelTransport<E>
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected Map<ObjectId,ChannelListener<E>>chListenersByUpperprotected booleansupportsDuplexクラスから継承されたフィールド org.piax.gtrans.impl.TransportImpl
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppers -
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedChannelTransportImpl(Peer peer, boolean supportsDuplex)RawTransportのように、ServiceIdを持たないTransportを生成する。protectedChannelTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans, boolean supportsDuplex) -
メソッドの概要
修飾子とタイプ メソッド 説明 voidfin()Finalize the Transport object.ChannelListener<E>getChannelListener()Get channel listener for the object which has default object ID.ChannelListener<E>getChannelListener(ObjectId upper)Get channel listener.Channel<E>newChannel(E dst)Channel<E>newChannel(E dst, boolean isDuplex)Channel<E>newChannel(E dst, TransOptions opts)Channel<E>newChannel(ObjectId appId, E dst)Channel<E>newChannel(ObjectId appId, E dst, boolean isDuplex)Channel<E>newChannel(ObjectId appId, E dst, TransOptions opts)Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst)Create a new channel.Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex)Create a new channel with isDuplex.abstract Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout)Create a new channel with isDuplex and timeout.Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, TransOptions opts)Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst, int timeout)Create a new channel with timeout.Channel<E>newChannel(TransportId upperTrans, E dst)Create a new channel for a transport object.Channel<E>newChannel(TransportId upperTrans, E dst, boolean isDuplex)Create a new channel for a transport object with isDuplex.Channel<E>newChannel(TransportId upperTrans, E dst, boolean isDuplex, int timeout)Create a new channel for a transport object with isDuplex and timeout.Channel<E>newChannel(TransportId upperTrans, E dst, boolean isDuplex, TransOptions opts)Channel<E>newChannel(TransportId upperTrans, E dst, int timeout)Create a new channel for a transport object with timeout.voidsetChannelListener(ObjectId upper, ChannelListener<E> listener)Set channel listener.voidsetChannelListener(ChannelListener<E> listener)Set channel listener for the object which has default object ID.booleansupportsDuplex()StringtoString0()クラスから継承されたメソッド org.piax.gtrans.impl.TransportImpl
checkActive, getBaseTransport, getDefaultAppId, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, 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.Transport
close, getBaseTransport, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, setListener, setListener
-
フィールド詳細
-
supportsDuplex
protected final boolean supportsDuplex -
chListenersByUpper
-
-
コンストラクタの詳細
-
ChannelTransportImpl
protected ChannelTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans, boolean supportsDuplex) throws IdConflictException -
ChannelTransportImpl
RawTransportのように、ServiceIdを持たないTransportを生成する。- パラメータ:
peer- the peer object.supportsDuplex- true if the transport supports duplex communication.
-
-
メソッドの詳細
-
fin
public void fin()インタフェースからコピーされた説明:TransportFinalize the Transport object. If the Transport object is already finalized, nothing happens. Normally, this method is not called by toplevel application. (Called by Peer#fin in turn.) -
supportsDuplex
public boolean supportsDuplex()- 定義:
supportsDuplexインタフェース内ChannelTransport<E extends Endpoint>- 戻り値:
- true when the channel supports duplex communication.
-
setChannelListener
インタフェースからコピーされた説明:ChannelTransportSet channel listener.- 定義:
setChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upper- the object ID of the transport object to set listener.listener- the channel listener to set.
-
getChannelListener
インタフェースからコピーされた説明:ChannelTransportGet channel listener.- 定義:
getChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upper- the object ID- 戻り値:
- the channel listener.
-
setChannelListener
インタフェースからコピーされた説明:ChannelTransportSet channel listener for the object which has default object ID.- 定義:
setChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
listener- the channel listner to set.
-
getChannelListener
インタフェースからコピーされた説明:ChannelTransportGet channel listener for the object which has default object ID.- 定義:
getChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- 戻り値:
- the channel listener.
-
newChannel
public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
sender- object ID of the sender.receiver- object ID of the receiver.dst- the endpoint of the destination to create channel.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, int timeout) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel with timeout.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
sender- object ID of the sender.receiver- object ID of the receiver.dst- the endpoint of the destination to create channel.timeout- the timeout length.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel with isDuplex.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
sender- object ID of the sender.receiver- object ID of the receiver.dst- the endpoint of the destination to create channel.isDuplex- whether the connection is duplex or not.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(ObjectId appId, E dst) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(ObjectId appId, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(ObjectId appId, E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public abstract Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel with isDuplex and timeout.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
sender- object ID of the sender.receiver- object ID of the receiver.dst- the endpoint of the destination to create channel.isDuplex- whether the connection is duplex or not.timeout- the timeout length.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(TransportId upperTrans, E dst) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel for a transport object.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upperTrans- the transport object.dst- the endpoint of the destination to create channel.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(TransportId upperTrans, E dst, int timeout) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel for a transport object with timeout.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upperTrans- the transport object.dst- the endpoint of the destination to create channel.timeout- timeout the timeout length.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel for a transport object with isDuplex.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upperTrans- the transport object.dst- the endpoint of the destination to create channel.isDuplex- whether the connection is duplex or not.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOExceptionインタフェースからコピーされた説明:ChannelTransportCreate a new channel for a transport object with isDuplex and timeout.- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- パラメータ:
upperTrans- the transport object.dst- the endpoint of the destination to create channel.isDuplex- whether the connection is duplex or not.timeout- timeout the timeout length.- 戻り値:
- a new instance of channel.
- 例外:
ProtocolUnsupportedException- an exception thrown when the protocol is not supported.IOException- an exception when thrown when an I/O error occurred.
-
newChannel
public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
toString0
- オーバーライド:
toString0クラス内TransportImpl<E extends Endpoint>
-