org.ow2.jasmine.monitoring.mbeancmd
Interface Command

All Known Implementing Classes:
AbstractCommand, Help

public interface Command

An MBeanCmd command.


Method Summary
 int exec()
          Executes the command.
 java.lang.String getName()
          Retrieves the name of the command.
 void help()
          Displays the help for this command.
 void setArgs(java.lang.String cmd, java.lang.String[] args)
          Sets command name and arguments.
 java.lang.String summary()
          Retrieves the command's summary.
 

Method Detail

setArgs

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

Parameters:
cmd - Command name.
args - Command arguments.

exec

public int exec()
Executes the command.

Returns:
0 if succeeded, an error code otherwise.

help

public void help()
Displays the help for this command.


getName

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

Returns:
Name of the command.

summary

public java.lang.String summary()
Retrieves the command's summary.

Returns:
Command's summary.