Class PermazenExec

java.lang.Object
org.dellroad.jct.core.simple.SimpleCommandSupport
org.dellroad.jct.core.simple.SimpleExec
io.permazen.cli.PermazenExec
All Implemented Interfaces:
org.dellroad.jct.core.Exec

public class PermazenExec extends org.dellroad.jct.core.simple.SimpleExec
A SimpleExec with an associated Permazen database.
  • Field Details

  • Constructor Details

    • PermazenExec

      public PermazenExec(KVDatabase kvdb)
    • PermazenExec

      public PermazenExec(Database db)
    • PermazenExec

      public PermazenExec(Permazen pdb)
    • PermazenExec

      public PermazenExec(KVDatabase kvdb, Database db, Permazen pdb)
      General constructor.

      Exactly one of the three parameters must be non-null.

      Parameters:
      kvdb - key/value database
      db - core API database
      pdb - Java database
      Throws:
      IllegalArgumentException - if not exactly one parameter is non-null
  • Method Details

    • newExecSession

      public PermazenExecSession newExecSession(org.dellroad.jct.core.ExecRequest request) throws IOException
      Specified by:
      newExecSession in interface org.dellroad.jct.core.Exec
      Overrides:
      newExecSession in class org.dellroad.jct.core.simple.SimpleExec
      Throws:
      IOException
    • newExecSession

      public final PermazenExecSession newExecSession(org.dellroad.jct.core.ExecRequest request, org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand command) throws IOException
      Overrides:
      newExecSession in class org.dellroad.jct.core.simple.SimpleExec
      Throws:
      IOException
    • createPermazenExecSession

      protected PermazenExecSession createPermazenExecSession(org.dellroad.jct.core.ExecRequest request, org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand command) throws IOException
      Throws:
      IOException
    • createSession

      protected Session createSession(PermazenExecSession execSession)