org.apache.qpid.commands
Class CommandImpl

java.lang.Object
  extended by org.apache.qpid.commands.CommandImpl
All Implemented Interfaces:
Command
Direct Known Subclasses:
Commanddelete, Commandget, Commandhelp, Commandinfo, Commandlist, Commandmove, Commandset, Commandview, Commandviewcontent

public abstract class CommandImpl
extends Object
implements Command


Field Summary
protected  JMXinfo info
           
 
Constructor Summary
CommandImpl()
           
CommandImpl(JMXinfo info)
           
 
Method Summary
 boolean checkoptionsetting(String option_letter)
           
 void echo(String str)
           
abstract  void execute()
           
 String getName()
           
 String getObject()
           
protected  String getOutputFormat()
           
protected  String getSeperator()
           
 String getVirtualhost()
           
protected  boolean hasName()
           
 String optionchecker(String option_letter)
           
abstract  void printusage()
           
protected  void setName(String name)
           
protected  void setObject(String object)
           
protected  void setOutputFormat(String outputformat)
           
protected  void setSeperator(String seperator)
           
protected  void setVirtualhost(String virtualhost)
           
 void unrecognizeoption()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

protected JMXinfo info
Constructor Detail

CommandImpl

public CommandImpl(JMXinfo info)

CommandImpl

public CommandImpl()
Method Detail

setName

protected void setName(String name)

getName

public String getName()

hasName

protected boolean hasName()

setObject

protected void setObject(String object)

getObject

public String getObject()

setOutputFormat

protected void setOutputFormat(String outputformat)

getOutputFormat

protected String getOutputFormat()

setSeperator

protected void setSeperator(String seperator)

getSeperator

protected String getSeperator()

setVirtualhost

protected void setVirtualhost(String virtualhost)

getVirtualhost

public String getVirtualhost()

optionchecker

public String optionchecker(String option_letter)
Specified by:
optionchecker in interface Command

checkoptionsetting

public boolean checkoptionsetting(String option_letter)
Specified by:
checkoptionsetting in interface Command

echo

public void echo(String str)

unrecognizeoption

public void unrecognizeoption()

execute

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

printusage

public abstract void printusage()
Specified by:
printusage in interface Command


Licensed to the Apache Software Foundation