Top Description Fields Constructors Methods
org.apache.sshd.agent.unix

public Class ChannelAgentForwarding

extends AbstractServerChannel
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.Collection, .Collections, java.util.concurrent.Future, org.apache.sshd.agent.SshAgent, org.apache.sshd.client.future.DefaultOpenFuture, .OpenFuture, org.apache.sshd.common.Closeable, .SshConstants, org.apache.sshd.common.channel.ChannelOutputStream, org.apache.sshd.common.util.ExceptionUtils, .GenericUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.util.threads.CloseableExecutorService, .ThreadUtils, org.apache.sshd.core.CoreModuleProperties, org.apache.sshd.server.channel.AbstractServerChannel, org.apache.tomcat.jni.Local, org.apache.tomcat.jni.Pool, org.apache.tomcat.jni.Socket, org.apache.tomcat.jni.Status

The client side channel that will receive requests forwards by the SSH server.

Field Summary

Modifier and TypeField and Description
private String
private Future<?>
private CloseableExecutorService
private long
private OutputStream
private long
Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
exitStatusSent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected OpenFuture
protected void
doWriteData(byte[] data, int off, long len)

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

protected void
protected Closeable
private static void
throwException(int
APR error code
code
)

transform an APR error number in a more fancy exception

Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
handleOpenFailurehandleOpenSuccessopensendExitStatus

Field Detail

authSocketback to summary
private String authSocket
forwarderback to summary
private Future<?> forwarder
forwardServiceback to summary
private CloseableExecutorService forwardService
handleback to summary
private long handle
outback to summary
private OutputStream out
poolback to summary
private long pool

Constructor Detail

ChannelAgentForwardingback to summary
public ChannelAgentForwarding(CloseableExecutorService executor)

Method Detail

closeImmediately0back to summary
private void closeImmediately0()
doInitback to summary
protected OpenFuture doInit(Buffer buffer)

Overrides org.apache.sshd.server.channel.AbstractServerChannel.doInit.

Annotations
@Override
doWriteDataback to summary
protected void doWriteData(byte[] data, int off, long len) throws IOException

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

Annotations
@Override
doWriteExtendedDataback to summary
protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteExtendedData.

Annotations
@Override
getInnerCloseableback to summary
protected Closeable getInnerCloseable()

Overrides org.apache.sshd.common.channel.AbstractChannel.getInnerCloseable.

Annotations
@Override
throwExceptionback to summary
private static void throwException(int code) throws IOException

transform an APR error number in a more fancy exception

Parameters
code:int

APR error code

Exceptions
IOException:
the produced exception for the given APR error number