org.ow2.jasmine.monitoring.mbeancmd
Interface Command

All Known Implementing Classes:
AbstractCommand, Dump, Help, JDBCConnections, Mbean, MLoad, MonologJMX, Poll, Replay, Scan, Snap, Stat

public interface Command

An MBeanCmd command.


Method Summary
 int exec(CommandDispatcher cmdDispatcher)
          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

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

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

exec

int exec(CommandDispatcher cmdDispatcher)
Executes the command.

Returns:
0 if succeeded, an error code otherwise.

help

void help()
Displays the help for this command.


getName

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

Returns:
Name of the command.

summary

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

Returns:
Command's summary.


Copyright © 2009 OW2 Consortium. All Rights Reserved.