|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neeve.root.RootObject
com.neeve.config.ConfigObject
com.neeve.config.ConfigTool
public class ConfigTool
The X Platform configuration tool
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.neeve.root.RootObject |
|---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigTool(IConfigRepository repo,
Tracer.Level traceLevel)
throws Exception
repo - The repository to use.traceLevel - The tool's initial trace level.
Exception
public ConfigTool(String configDescriptor,
boolean createRepo)
throws Exception
This constructor invokes ConfigRoot(configDescriptor, createRepo, Tracer.Level.Info}
Exception| Method Detail |
|---|
public 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.
Exception
public 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.
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||