public class ChannelEntry extends Object implements IWriteInterestManager
Modifier and Type | Class and Description |
---|---|
static class |
ChannelEntry.State |
Modifier and Type | Field and Description |
---|---|
long |
_connectionID
the unique connection ID identifier
|
Reader |
_reader |
Writer |
_writer |
SelectionKey |
_writeSelectionKey |
Constructor and Description |
---|
ChannelEntry(WriteSelectorThread writeSelectorThread,
ReadSelectorThread readSelectorThread,
SelectionKey selectionKey,
InetSocketAddress clientEndPointAddress,
Pivot pivot)
Constructor.
|
public final Writer _writer
public final Reader _reader
public SelectionKey _writeSelectionKey
public final long _connectionID
public ChannelEntry(WriteSelectorThread writeSelectorThread, ReadSelectorThread readSelectorThread, SelectionKey selectionKey, InetSocketAddress clientEndPointAddress, Pivot pivot)
selectionKey
- a token representing the registration of a SelectableChannel
with a Selector
.clientEndPointAddress
- the - The address of the connecting LRMI client.public MarshalInputStream readRequest(Reader.Context ctx)
public RequestPacket unmarshall(MarshalInputStream stream)
public void setOwnerRemoteObjID(long remoteObjID)
public InetSocketAddress getClientEndPointAddress()
public void writeReply(ReplyPacket packet, boolean reuseBuffer, Writer.Context ctx, String monitoringId)
public void removeWriteInterest(boolean restoreReadInterest)
removeWriteInterest
in interface IWriteInterestManager
public void setWriteInterest()
setWriteInterest
in interface IWriteInterestManager
public long getRemoteObjID()
public long getConnectionTimeStamp()
public long getConnectionID()
public void returnSocket()
public void onWriteEvent()
public void close() throws IOException
IOException
public void setSourceDetails(PlatformLogicalVersion logicalVersion, long pid)
public PlatformLogicalVersion getSourcePlatformLogicalVersion()
public long getSourcePid()
public long getGeneratedTraffic()
public long getReceivedTraffic()
public IRemoteClassProviderProvider getRemoteClassProvider()
public SocketChannel getSocketChannel()
public SelectionKey getReadSelectionKey()
public boolean isProtocolValidated()
public boolean readProtocolValidationHeader(Reader.ProtocolValidationContext context)
public void monitorActivity(String trackingId)
public LRMIMonitoringModule getMonitoringModule()
public ChannelEntry.State getChannelState()
public void setChannelState(ChannelEntry.State state)
public WriteExecutionPhaseListener getWriteExecutionPhaseListener()
Copyright © GigaSpaces.