com.jcraft.jsch
Class Channel
java.lang.Object
com.jcraft.jsch.Channel
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- ChannelDirectTCPIP, ChannelExec, ChannelForwardedTCPIP, ChannelSftp, ChannelShell, ChannelSubsystem
public abstract class Channel
- extends java.lang.Object
- implements java.lang.Runnable
Field Summary |
protected byte[] |
type
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected byte[] type
connect
public void connect()
throws JSchException
- Throws:
JSchException
connect
public void connect(int connectTimeout)
throws JSchException
- Throws:
JSchException
setXForwarding
public void setXForwarding(boolean foo)
start
public void start()
throws JSchException
- Throws:
JSchException
isEOF
public boolean isEOF()
setInputStream
public void setInputStream(java.io.InputStream in)
setInputStream
public void setInputStream(java.io.InputStream in,
boolean dontclose)
setOutputStream
public void setOutputStream(java.io.OutputStream out)
setOutputStream
public void setOutputStream(java.io.OutputStream out,
boolean dontclose)
setExtOutputStream
public void setExtOutputStream(java.io.OutputStream out)
setExtOutputStream
public void setExtOutputStream(java.io.OutputStream out,
boolean dontclose)
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getExtInputStream
public java.io.InputStream getExtInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
isClosed
public boolean isClosed()
disconnect
public void disconnect()
isConnected
public boolean isConnected()
sendSignal
public void sendSignal(java.lang.String signal)
throws java.lang.Exception
- Throws:
java.lang.Exception
getExitStatus
public int getExitStatus()
getSession
public Session getSession()
throws JSchException
- Throws:
JSchException
getId
public int getId()
sendOpenConfirmation
protected void sendOpenConfirmation()
throws java.lang.Exception
- Throws:
java.lang.Exception
sendOpenFailure
protected void sendOpenFailure(int reasoncode)
genChannelOpenPacket
protected Packet genChannelOpenPacket()
sendChannelOpen
protected void sendChannelOpen()
throws java.lang.Exception
- Throws:
java.lang.Exception