Package ghidra.pty.ssh
Class SshPtySession
java.lang.Object
ghidra.pty.ssh.SshPtySession
- All Implemented Interfaces:
PtySession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a human-readable description of the sessionvoid
Take the greatest efforts to terminate the session (leader and descendants)protected int
doWaitExited
(Long millis) int
Wait for the session leader to exit, returning its optional exit status codeint
waitExited
(long timeout, TimeUnit unit)
-
Constructor Details
-
SshPtySession
public SshPtySession(com.jcraft.jsch.Channel channel)
-
-
Method Details
-
doWaitExited
- Throws:
InterruptedException
TimeoutException
-
waitExited
Description copied from interface:PtySession
Wait for the session leader to exit, returning its optional exit status code- Specified by:
waitExited
in interfacePtySession
- Returns:
- the status code, if applicable and implemented
- Throws:
InterruptedException
- if the wait is interrupted
-
waitExited
- Specified by:
waitExited
in interfacePtySession
- Throws:
InterruptedException
TimeoutException
-
destroyForcibly
public void destroyForcibly()Description copied from interface:PtySession
Take the greatest efforts to terminate the session (leader and descendants)If this represents a remote session, this should strive to release the remote resources consumed by this session. If that is not possible, this should at the very least release whatever local resources are used in maintaining and controlling the remote session.
- Specified by:
destroyForcibly
in interfacePtySession
-
description
Description copied from interface:PtySession
Get a human-readable description of the session- Specified by:
description
in interfacePtySession
- Returns:
- the description
-