|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Session.Command
Command API.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.schmizz.sshj.connection.channel.Channel |
---|
Channel.Direct, Channel.Forwarded |
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable |
---|
ErrorNotifiable.Util |
Method Summary | |
---|---|
InputStream |
getErrorStream()
Returns the command's stderr stream. |
String |
getExitErrorMessage()
If the command exit violently with a signal , an error message would have been
received and can be retrieved via this method. |
Signal |
getExitSignal()
Returns the signal if the command exit violently, or null if this information was not
received. |
Integer |
getExitStatus()
Returns the exit status of the command if it was received, or null if this information was not
received. |
Boolean |
getExitWasCoreDumped()
If the command exit violently with a signal , information about whether a core dump
took place would have been received and can be retrieved via this method. |
void |
signal(Signal signal)
Send a signal to the remote command. |
Methods inherited from interface net.schmizz.sshj.connection.channel.Channel |
---|
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, isOpen, join, join, sendEOF, setAutoExpand |
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler |
---|
handle |
Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable |
---|
notifyError |
Method Detail |
---|
InputStream getErrorStream()
stderr
stream.
String getExitErrorMessage()
with a signal
, an error message would have been
received and can be retrieved via this method. Otherwise, this method will return null
.
Signal getExitSignal()
signal
if the command exit violently, or null
if this information was not
received.
Integer getExitStatus()
null
if this information was not
received.
Boolean getExitWasCoreDumped()
with a signal
, information about whether a core dump
took place would have been received and can be retrieved via this method. Otherwise, this method will return
null
.
void signal(Signal signal) throws TransportException
signal
- the signal
TransportException
- if error sending the signal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |