org.apache.qpid.tools.messagestore.commands
Class AbstractCommand

java.lang.Object
  extended by org.apache.qpid.tools.messagestore.commands.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
Clear, Help, List, Load, Move, Quit, Select, Show

public abstract class AbstractCommand
extends Object
implements Command


Field Summary
protected  Console _console
           
protected  MessageStoreTool _tool
           
 
Constructor Summary
AbstractCommand(MessageStoreTool tool)
           
 
Method Summary
protected  void commandError(String message, String[] args)
           
abstract  void execute(String... args)
           
abstract  String getCommand()
           
abstract  String help()
           
 void setOutput(Console out)
           
abstract  String usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_console

protected Console _console

_tool

protected MessageStoreTool _tool
Constructor Detail

AbstractCommand

public AbstractCommand(MessageStoreTool tool)
Method Detail

setOutput

public void setOutput(Console out)
Specified by:
setOutput in interface Command

commandError

protected void commandError(String message,
                            String[] args)

help

public abstract String help()
Specified by:
help in interface Command

usage

public abstract String usage()
Specified by:
usage in interface Command

getCommand

public abstract String getCommand()
Specified by:
getCommand in interface Command

execute

public abstract void execute(String... args)
Specified by:
execute in interface Command


Licensed to the Apache Software Foundation