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.Session
Nested classes/interfaces inherited from class org.dellroad.jct.core.simple.SimpleCommandSupport
org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Database
protected final KVDatabase
protected final Permazen
Fields inherited from class org.dellroad.jct.core.simple.SimpleCommandSupport
commandBundles, commandLineParser
-
Constructor Summary
ConstructorDescriptionPermazenExec
(Database db) PermazenExec
(KVDatabase kvdb) PermazenExec
(KVDatabase kvdb, Database db, Permazen pdb) General constructor.PermazenExec
(Permazen pdb) -
Method Summary
Modifier and TypeMethodDescriptionprotected PermazenExecSession
createPermazenExecSession
(org.dellroad.jct.core.ExecRequest request, org.dellroad.jct.core.simple.SimpleCommandSupport.FoundCommand command) protected Session
createSession
(PermazenExecSession execSession) newExecSession
(org.dellroad.jct.core.ExecRequest request) final PermazenExecSession
newExecSession
(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:
newExecSession
in interfaceorg.dellroad.jct.core.Exec
- Overrides:
newExecSession
in 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:
newExecSession
in 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
-