org.apache.qpid.tools.messagestore
Class MessageStoreTool

java.lang.Object
  extended by org.apache.qpid.tools.messagestore.MessageStoreTool

public class MessageStoreTool
extends Object

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

_console

protected Console _console
I/O Wrapper.


_batchMode

protected boolean _batchMode
Batch mode flag.

Constructor Detail

MessageStoreTool

public MessageStoreTool(String[] args)
                 throws Configuration.InitException
Throws:
Configuration.InitException

MessageStoreTool

public MessageStoreTool(String[] args,
                        InputStream in,
                        OutputStream out)
                 throws Configuration.InitException
Throws:
Configuration.InitException
Method Detail

main

public static void main(String[] args)
                 throws Configuration.InitException
Throws:
Configuration.InitException

getState

public MessageStoreTool.State getState()

getCommands

public Map<String,Command> getCommands()

setConfigurationFile

public void setConfigurationFile(String configfile)
                          throws Configuration.InitException
Throws:
Configuration.InitException

getConsole

public Console getConsole()

setConsole

public void setConsole(Console console)

quit

public void quit()

setBatchMode

public void setBatchMode(boolean batchmode)

start

protected void start()
Main loop


runScripts

protected void runScripts(String script)
Execute a script (batch mode).

Parameters:
script - The file script

prompt

public String prompt()

exec

protected void exec(String[] args)
Execute the command.

Parameters:
args - [command, arg0, arg1...].

help

protected static void help()
Displays usage info.



Licensed to the Apache Software Foundation