henplus.commands
Class StatusCommand

java.lang.Object
  extended by henplus.AbstractCommand
      extended by henplus.commands.StatusCommand
All Implemented Interfaces:
Command

public class StatusCommand
extends AbstractCommand

document me.


Field Summary
 
Fields inherited from interface henplus.Command
EXEC_FAILED, SUCCESS, SYNTAX_ERROR
 
Constructor Summary
StatusCommand()
           
 
Method Summary
 int execute(SQLSession session, String cmd, String param)
          execute the command given.
 String[] getCommandList()
          returns the command-strings this command can handle.
 String getShortDescription()
          return a descriptive string.
 
Methods inherited from class henplus.AbstractCommand
argumentCount, complete, getLongDescription, getOption, getOptions, getSynopsis, handleCommandline, isComplete, participateInCommandCompletion, registerOptions, requiresValidSession, setOptions, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusCommand

public StatusCommand()
Method Detail

getCommandList

public String[] getCommandList()
returns the command-strings this command can handle.


execute

public int execute(SQLSession session,
                   String cmd,
                   String param)
execute the command given.

Parameters:
session - the SQLsession this command is executed from.
cmd - the command as string.
param - the rest parameters following the command.
Returns:
one of SUCCESS, SYNTAX_ERROR, EXEC_FAILED to indicate the exit status of this command. On SYNTAX_ERROR, the CommandDispatcher displays a synopsis if available.

getShortDescription

public String getShortDescription()
return a descriptive string.

Specified by:
getShortDescription in interface Command
Overrides:
getShortDescription in class AbstractCommand


? 1997..2006 Henner Zeller