Package io.permazen.cli.jshell
Class PermazenJShellShellSession
java.lang.Object
org.dellroad.jct.core.AbstractConsoleSession<org.dellroad.jct.core.Shell,org.dellroad.jct.core.ShellRequest>
org.dellroad.jct.core.AbstractShellSession
org.dellroad.jct.jshell.JShellShellSession
io.permazen.cli.jshell.PermazenJShellShellSession
- All Implemented Interfaces:
HasPermazenSession
,org.dellroad.jct.core.ConsoleSession<org.dellroad.jct.core.Shell,
,org.dellroad.jct.core.ShellRequest> org.dellroad.jct.core.ShellSession
public class PermazenJShellShellSession
extends org.dellroad.jct.jshell.JShellShellSession
implements HasPermazenSession
-
Field Summary
Fields inherited from class org.dellroad.jct.jshell.JShellShellSession
localContextClassLoader
Fields inherited from class org.dellroad.jct.core.AbstractShellSession
exitValue, in, out
Fields inherited from class org.dellroad.jct.core.AbstractConsoleSession
owner, request
-
Constructor Summary
ConstructorDescriptionPermazenJShellShellSession
(PermazenJShellShell shell, PermazenShellRequest request) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
static PermazenJShellShellSession
Get the instance associated with the current thread.Get the PermazenSession
associated with this instance.modifyJShellParams
(List<String> params) Methods inherited from class org.dellroad.jct.jshell.JShellShellSession
buildOutputStream, createBuilder, getOwner, setLocalContextClassLoader
Methods inherited from class org.dellroad.jct.core.AbstractShellSession
buildInputStream, getExitValue, getInputStream, getOutputStream, setExitValue
Methods inherited from class org.dellroad.jct.core.AbstractConsoleSession
doInterrupt, execute, getRequest, interrupt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.dellroad.jct.core.ConsoleSession
execute, getRequest, interrupt
Methods inherited from interface org.dellroad.jct.core.ShellSession
getErrorStream
-
Constructor Details
-
PermazenJShellShellSession
-
-
Method Details
-
getCurrent
Get the instance associated with the current thread.- Returns:
- session associated with the current thread, or null if not found
-
modifyJShellParams
- Overrides:
modifyJShellParams
in classorg.dellroad.jct.jshell.JShellShellSession
-
doExecute
- Overrides:
doExecute
in classorg.dellroad.jct.jshell.JShellShellSession
- Throws:
InterruptedException
-
getPermazenSession
Description copied from interface:HasPermazenSession
Get the PermazenSession
associated with this instance.- Specified by:
getPermazenSession
in interfaceHasPermazenSession
-