public class NettyChannelTransport extends ChannelTransportImpl<NettyLocator> implements ChannelTransport<NettyLocator>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
int |
forwardCount |
NATLocatorManager |
nMgr |
int |
RAW_POOL_SIZE |
io.netty.util.AttributeKey<String> |
rawKey |
chListenersByUpperdefaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, transId, transIdPath, uppersDEFAULT_APP_ID| コンストラクタと説明 |
|---|
NettyChannelTransport(Peer peer,
TransportId transId,
PeerId peerId,
NettyLocator peerLocator) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
fin()
Finalize the Transport object.
|
List<NettyRawChannel> |
getCreatedRawChannels() |
NettyLocator |
getEndpoint()
Returns the local endpoint of the Transport.
|
List<NettyLocator> |
getRawChannelLocators() |
Channel<NettyLocator> |
newChannel(ObjectId sender,
ObjectId receiver,
NettyLocator dst,
boolean isDuplex,
int timeout)
Create a new channel with isDuplex and timeout.
|
void |
send(ObjectId sender,
ObjectId receiver,
NettyLocator dst,
Object msg)
Send a message from a local object to a remote object.
|
getChannelListener, getChannelListener, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, setChannelListener, setChannelListener, supportsDuplex, toString0checkActive, getBaseTransport, getDefaultAppId, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChannelListener, getChannelListener, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, setChannelListener, setChannelListener, supportsDuplexgetBaseTransport, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, setListener, setListenerpublic NATLocatorManager nMgr
public final int RAW_POOL_SIZE
public io.netty.util.AttributeKey<String> rawKey
public int forwardCount
public NettyChannelTransport(Peer peer, TransportId transId, PeerId peerId, NettyLocator peerLocator) throws IdConflictException, IOException
public void fin()
Transportfin インタフェース内 Transport<NettyLocator>fin クラス内 ChannelTransportImpl<NettyLocator>public void send(ObjectId sender, ObjectId receiver, NettyLocator dst, Object msg) throws ProtocolUnsupportedException, IOException
Transportreceiver on
the peer with destination dst.
This type of send is used when the sender and the receiver have different ObjectId, which means
upper layer exchanges the message using Transport.send インタフェース内 Transport<NettyLocator>sender - The ObjectId of the sender.receiver - The ObjectId of the receiver.dst - The Destination of the peer.msg - The message itself.ProtocolUnsupportedException - Raises if the 'dst' peer does not handle the protocol.IOException - Raises if I/O-related exceptions occured.public List<NettyRawChannel> getCreatedRawChannels()
public List<NettyLocator> getRawChannelLocators()
public NettyLocator getEndpoint()
TransportgetEndpoint インタフェース内 ChannelTransport<NettyLocator>getEndpoint インタフェース内 Transport<NettyLocator>public Channel<NettyLocator> newChannel(ObjectId sender, ObjectId receiver, NettyLocator dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<NettyLocator>newChannel クラス内 ChannelTransportImpl<NettyLocator>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.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.Copyright © 2016. All rights reserved.