public class ConfigTool extends ConfigObject
| Modifier and Type | Class and Description |
|---|---|
class |
ConfigTool.Commit |
class |
ConfigTool.CreateComplexEntity |
class |
ConfigTool.CreateComplexEntityContainer |
class |
ConfigTool.CreateSimpleEntity |
class |
ConfigTool.CreateSimpleEntityContainer |
class |
ConfigTool.DeleteComplexEntity |
class |
ConfigTool.DeleteComplexEntityContainer |
class |
ConfigTool.DeleteSimpleEntity |
class |
ConfigTool.DeleteSimpleEntityContainer |
class |
ConfigTool.Dump |
class |
ConfigTool.DumpComplexEntity |
class |
ConfigTool.DumpComplexEntityContainer |
class |
ConfigTool.DumpSimpleEntity |
class |
ConfigTool.DumpSimpleEntityContainer |
class |
ConfigTool.Scriptify |
class |
ConfigTool.SetComplexEntityProperty |
class |
ConfigTool.SetSimpleEntityProperty |
class |
ConfigTool.Trace |
| Constructor and Description |
|---|
ConfigTool(IConfigRepository repo,
Tracer.Level traceLevel)
Construct an instance of the tool using an repository.
|
ConfigTool(String configDescriptor,
boolean createRepo)
Construct an instance of the tool using the default trace level.
|
| Modifier and Type | Method and Description |
|---|---|
IConfigRepository |
getConfigRepository()
Get the configuration repository that this config tool is working with
|
com.neeve.tools.interactive.InteractiveTool |
getInteractiveTool()
Get the interactive tool that this config tool is working with
|
void |
run(File scriptFile)
Run taking command input from a script file or stdin.
|
void |
run(InputStream in)
Run taking command input from a buffered reader.
|
getTracerpublic ConfigTool(IConfigRepository repo, Tracer.Level traceLevel) throws Exception
repo - The repository to use.traceLevel - The tool's initial trace level.Exceptionpublic final com.neeve.tools.interactive.InteractiveTool getInteractiveTool()
public final IConfigRepository getConfigRepository()
public final void run(InputStream in) throws Exception
in - The InputStream to take input from.
Use this method to feed a set of commands to the configuration tool for batch execution.
Exceptionpublic final void run(File scriptFile) throws Exception
scriptFile - The script file or null for stdin
Use this method to either start the tool in interactive mode (scriptFile=null) or feed a set of commands to the configuration tool from a file for batch execution.
ExceptionCopyright © 2019 Neeve Research, LLC. All Rights Reserved.