public class ChannelAgentForwarding extends AbstractServerChannel
AbstractChannel.GracefulChannelCloseable, AbstractChannel.GracefulState
AbstractCloseable.State
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FORWARDER_BUF_SIZE |
static String |
FORWARDER_BUFFER_SIZE
Property that can be set on the factory manager in order to control
the buffer size used to forward data from the established channel
|
static int |
MAX_FORWARDER_BUF_SIZE |
static int |
MIN_FORWARDER_BUF_SIZE |
exitStatusSent
channelListenerProxy, channelListeners, eof, executor, gracefulFuture, gracefulState, handlers, localWindow, remoteWindow, RESPONSE_BUFFER_GROWTH_FACTOR, service, shutdownExecutor
closeFuture, lock, state
log
CHANNEL_EXEC, CHANNEL_SHELL, CHANNEL_SUBSYSTEM
Constructor and Description |
---|
ChannelAgentForwarding() |
Modifier and Type | Method and Description |
---|---|
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
protected OpenFuture |
doInit(Buffer buffer) |
protected void |
doWriteData(byte[] data,
int off,
int len) |
protected void |
doWriteExtendedData(byte[] data,
int off,
int len) |
void |
handleEof() |
getServerSession, handleOpenFailure, handleOpenSuccess, open, sendExitStatus
addChannelListener, addPendingRequest, addRequestHandler, configureWindow, doCloseImmediately, getChannelListenerProxy, getExecutorService, getId, getInnerCloseable, getLocalWindow, getParentPropertyResolver, getProperties, getRecipient, getRemoteWindow, getSession, handleChannelRequest, handleClose, handleData, handleExtendedData, handleFailure, handleInternalRequest, handleRequest, handleSuccess, handleUnknownChannelRequest, handleWindowAdjust, init, isEofSignalled, isShutdownOnExit, notifyStateChanged, preClose, removeChannelListener, removePendingRequest, sendEof, sendResponse, sendWindowAdjust, setEofSignalled, setExecutorService, setRecipient, setShutdownOnExit, toString, writePacket
doCloseGracefully
builder, isClosed, isClosing
close, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleExtendedData, handleFailure, handleRequest, handleSuccess, handleWindowAdjust, init
addChannelListener, getChannelListenerProxy, removeChannelListener
getParentPropertyResolver, getProperties
public static final String FORWARDER_BUFFER_SIZE
public static final int MIN_FORWARDER_BUF_SIZE
public static final int DEFAULT_FORWARDER_BUF_SIZE
public static final int MAX_FORWARDER_BUF_SIZE
protected OpenFuture doInit(Buffer buffer)
doInit
in class AbstractServerChannel
public CloseFuture close(boolean immediately)
Closeable
close
in class AbstractCloseable
immediately
- true
if the resource should be shut down abruptly,
false
for a graceful closepublic void handleEof() throws IOException
handleEof
in class AbstractChannel
IOException
protected void doWriteData(byte[] data, int off, int len) throws IOException
doWriteData
in class AbstractChannel
IOException
protected void doWriteExtendedData(byte[] data, int off, int len) throws IOException
doWriteExtendedData
in class AbstractChannel
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.