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

    Fields
    Modifier and Type
    Field
    Description
    protected Session
     

    Fields inherited from class org.dellroad.jct.core.simple.SimpleShell.Session

    reader

    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

    Constructors
    Constructor
    Description
    PermazenShellSession(PermazenShell shell, org.dellroad.jct.core.ShellRequest request, org.jline.reader.LineReader reader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    Get the Permazen Session associated with this instance.

    Methods inherited from class org.dellroad.jct.core.simple.SimpleShell.Session

    commandLoop, doExecute, execute, getContinuationPrompt, getNormalPrompt

    Methods inherited from class org.dellroad.jct.core.AbstractShellSession

    buildInputStream, buildOutputStream, 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
  • Field Details

    • session

      protected Session 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

      public PermazenShell getOwner()
      Specified by:
      getOwner in interface org.dellroad.jct.core.ConsoleSession<org.dellroad.jct.core.Shell,org.dellroad.jct.core.ShellRequest>
      Overrides:
      getOwner in class org.dellroad.jct.core.simple.SimpleShell.Session
    • getGreeting

      public String getGreeting()
      Overrides:
      getGreeting in class org.dellroad.jct.core.simple.SimpleShell.Session
    • getPermazenSession

      public Session getPermazenSession()
      Description copied from interface: HasPermazenSession
      Get the Permazen Session associated with this instance.
      Specified by:
      getPermazenSession in interface HasPermazenSession