org.apache.sshd
Interface ClientChannel

All Known Implementing Classes:
AbstractClientChannel, AgentForwardSupport.AgentForwardedChannel, ChannelExec, ChannelSession, ChannelShell, ChannelSubsystem, TcpipForwardSupport.ChannelForwardedTcpip, X11ForwardSupport.ChannelForwardedX11

public interface ClientChannel

A client channel used to communicate with the SSH server. Client channels can be shells, simple commands or subsystems

Author:
Apache MINA SSHD Project

Field Summary
static String CHANNEL_EXEC
           
static String CHANNEL_SHELL
           
static String CHANNEL_SUBSYSTEM
           
static int CLOSED
           
static int EOF
           
static int EXIT_SIGNAL
           
static int EXIT_STATUS
           
static int STDERR_DATA
           
static int STDOUT_DATA
           
static int TIMEOUT
           
 
Method Summary
 CloseFuture close(boolean immediately)
           
 Integer getExitStatus()
           
 OpenFuture open()
           
 void setErr(OutputStream err)
           
 void setIn(InputStream in)
           
 void setOut(OutputStream out)
           
 int waitFor(int mask, long timeout)
           
 

Field Detail

CHANNEL_EXEC

static final String CHANNEL_EXEC
See Also:
Constant Field Values

CHANNEL_SHELL

static final String CHANNEL_SHELL
See Also:
Constant Field Values

CHANNEL_SUBSYSTEM

static final String CHANNEL_SUBSYSTEM
See Also:
Constant Field Values

TIMEOUT

static final int TIMEOUT
See Also:
Constant Field Values

CLOSED

static final int CLOSED
See Also:
Constant Field Values

STDOUT_DATA

static final int STDOUT_DATA
See Also:
Constant Field Values

STDERR_DATA

static final int STDERR_DATA
See Also:
Constant Field Values

EOF

static final int EOF
See Also:
Constant Field Values

EXIT_STATUS

static final int EXIT_STATUS
See Also:
Constant Field Values

EXIT_SIGNAL

static final int EXIT_SIGNAL
See Also:
Constant Field Values
Method Detail

setIn

void setIn(InputStream in)

setOut

void setOut(OutputStream out)

setErr

void setErr(OutputStream err)

open

OpenFuture open()
                throws Exception
Throws:
Exception

waitFor

int waitFor(int mask,
            long timeout)

close

CloseFuture close(boolean immediately)

getExitStatus

Integer getExitStatus()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.