Package io.permazen.cli
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.dellroad.jct.core.simple.SimpleExec
org.dellroad.jct.core.simple.SimpleExec.SessionNested classes/interfaces inherited from class org.dellroad.jct.core.simple.SimpleCommandSupport
org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Databaseprotected final KVDatabaseprotected final PermazenFields inherited from class org.dellroad.jct.core.simple.SimpleCommandSupport
commandBundles, commandLineParser -
Constructor Summary
ConstructorsConstructorDescriptionPermazenExec(Database db) PermazenExec(KVDatabase kvdb) PermazenExec(KVDatabase kvdb, Database db, Permazen pdb) General constructor.PermazenExec(Permazen pdb) -
Method Summary
Modifier and TypeMethodDescriptionprotected PermazenExecSessioncreatePermazenExecSession(org.dellroad.jct.core.ExecRequest request, org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand command) protected SessioncreateSession(PermazenExecSession execSession) newExecSession(org.dellroad.jct.core.ExecRequest request) final PermazenExecSessionnewExecSession(org.dellroad.jct.core.ExecRequest request, org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand command) Methods inherited from class org.dellroad.jct.core.simple.SimpleCommandSupport
buildCommandMap, findCommand, findCommand, findCommand, getCommandBundles, getCommandLineParser, setCommandLineParser
-
Field Details
-
kvdb
-
db
-
pdb
-
-
Constructor Details
-
PermazenExec
-
PermazenExec
-
PermazenExec
-
PermazenExec
General constructor.Exactly one of the three parameters must be non-null.
- Parameters:
kvdb- key/value databasedb- core API databasepdb- 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:
newExecSessionin interfaceorg.dellroad.jct.core.Exec- Overrides:
newExecSessionin classorg.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:
newExecSessionin classorg.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
-