org.ow2.jasmine.monitoring.mbeancmd.commands
Class Help

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.commands.Help
All Implemented Interfaces:
Command

public class Help
extends java.lang.Object
implements Command

Command that displays application help.


Constructor Summary
Help()
           
 
Method Summary
 int exec(CommandDispatcher cmdDispatcher)
          Abstract redefinition of inherited method.
 java.lang.String getName()
          Implementation of inherited method.
 void help()
          Implementation of inherited method.
 void setArgs(java.lang.String cmd, java.lang.String[] args)
          Implementation of inherited method.
 java.lang.String summary()
          Abstract redefinition of inherited method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Help

public Help()
Method Detail

setArgs

public void setArgs(java.lang.String cmd,
                    java.lang.String[] args)
Implementation of inherited method. Sets command name and arguments.

Specified by:
setArgs in interface Command
Parameters:
cmd - Command name.
args - Command arguments.
See Also:
AbstractCommand.setArgs(String, String[])

exec

public int exec(CommandDispatcher cmdDispatcher)
Abstract redefinition of inherited method. Executes the command.

Specified by:
exec in interface Command
Returns:
0 if succeeded, an error code otherwise.
See Also:
org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand#exec()

summary

public java.lang.String summary()
Abstract redefinition of inherited method. Retrieves the command's summary.

Specified by:
summary in interface Command
Returns:
Command's summary.
See Also:
AbstractCommand.summary()

help

public void help()
Implementation of inherited method. Displays the help for this command.

Specified by:
help in interface Command
See Also:
AbstractCommand.help(), AbstractCommand.getHelpDoc()

getName

public java.lang.String getName()
Implementation of inherited method. Retrieves the name of the command.

Specified by:
getName in interface Command
Returns:
Name of the command.
See Also:
AbstractCommand.getName()


Copyright © 2009 OW2 Consortium. All Rights Reserved.