|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.tools.messagestore.MessageStoreTool
public class MessageStoreTool
MessageStoreTool.
Nested Class Summary | |
---|---|
(package private) static class |
MessageStoreTool.ShutdownHook
Simple ShutdownHook to cleanly shutdown the databases |
static class |
MessageStoreTool.State
This class is used to store the current state of the tool. |
Field Summary | |
---|---|
protected boolean |
_batchMode
Batch mode flag. |
protected Console |
_console
I/O Wrapper. |
Constructor Summary | |
---|---|
MessageStoreTool(String[] args)
|
|
MessageStoreTool(String[] args,
InputStream in,
OutputStream out)
|
Method Summary | |
---|---|
protected void |
exec(String[] args)
Execute the command. |
Map<String,Command> |
getCommands()
|
Console |
getConsole()
|
MessageStoreTool.State |
getState()
|
protected static void |
help()
Displays usage info. |
static void |
main(String[] args)
|
String |
prompt()
|
void |
quit()
|
protected void |
runScripts(String script)
Execute a script (batch mode). |
void |
setBatchMode(boolean batchmode)
|
void |
setConfigurationFile(String configfile)
|
void |
setConsole(Console console)
|
protected void |
start()
Main loop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Console _console
protected boolean _batchMode
Constructor Detail |
---|
public MessageStoreTool(String[] args) throws Configuration.InitException
Configuration.InitException
public MessageStoreTool(String[] args, InputStream in, OutputStream out) throws Configuration.InitException
Configuration.InitException
Method Detail |
---|
public static void main(String[] args) throws Configuration.InitException
Configuration.InitException
public MessageStoreTool.State getState()
public Map<String,Command> getCommands()
public void setConfigurationFile(String configfile) throws Configuration.InitException
Configuration.InitException
public Console getConsole()
public void setConsole(Console console)
public void quit()
public void setBatchMode(boolean batchmode)
protected void start()
protected void runScripts(String script)
script
- The file scriptpublic String prompt()
protected void exec(String[] args)
args
- [command, arg0, arg1...].protected static void help()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |