Package io.permazen.cli
Class PermazenShellSession
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.core.simple.SimpleShell.Session
io.permazen.cli.PermazenShellSession
- 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 PermazenShellSession
extends org.dellroad.jct.core.simple.SimpleShell.Session
implements HasPermazenSession
A
ShellSession that with an associated Permazen database.-
Field Summary
FieldsFields inherited from class org.dellroad.jct.core.simple.SimpleShell.Session
readerFields inherited from class org.dellroad.jct.core.AbstractShellSession
exitValue, in, outFields inherited from class org.dellroad.jct.core.AbstractConsoleSession
owner, request -
Constructor Summary
ConstructorsConstructorDescriptionPermazenShellSession(PermazenShell shell, org.dellroad.jct.core.ShellRequest request, org.jline.reader.LineReader reader) -
Method Summary
Methods inherited from class org.dellroad.jct.core.simple.SimpleShell.Session
commandLoop, doExecute, execute, getContinuationPrompt, getNormalPromptMethods inherited from class org.dellroad.jct.core.AbstractShellSession
buildInputStream, buildOutputStream, getExitValue, getInputStream, getOutputStream, setExitValueMethods inherited from class org.dellroad.jct.core.AbstractConsoleSession
doInterrupt, execute, getRequest, interruptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dellroad.jct.core.ConsoleSession
execute, getRequest, interruptMethods inherited from interface org.dellroad.jct.core.ShellSession
getErrorStream
-
Field Details
-
session
-
-
Constructor Details
-
PermazenShellSession
public PermazenShellSession(PermazenShell shell, org.dellroad.jct.core.ShellRequest request, org.jline.reader.LineReader reader) throws IOException - Throws:
IOException
-
-
Method Details
-
getOwner
- Specified by:
getOwnerin interfaceorg.dellroad.jct.core.ConsoleSession<org.dellroad.jct.core.Shell,org.dellroad.jct.core.ShellRequest> - Overrides:
getOwnerin classorg.dellroad.jct.core.simple.SimpleShell.Session
-
getGreeting
- Overrides:
getGreetingin classorg.dellroad.jct.core.simple.SimpleShell.Session
-
getPermazenSession
Description copied from interface:HasPermazenSessionGet the PermazenSessionassociated with this instance.- Specified by:
getPermazenSessionin interfaceHasPermazenSession
-