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

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

public class Scan
extends AbstractCommand

Author:
waeselyf

Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
arguments, logger, name, SIMPLEDATEFORMAT
 
Constructor Summary
Scan()
          Constructor: calls setOptions().
 
Method Summary
 int exec(CommandDispatcher cmdDispatcher)
          Abstract redefinition of inherited method.
static void main(java.lang.String[] args)
           
 void parseCommandLine(java.lang.String[] args)
          Parses the command line arguments into Snap.commandLine.
 java.lang.String summary()
          Abstract redefinition of inherited method.
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
getHelpDoc, getName, help, setArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scan

public Scan()
Constructor: calls setOptions().

Method Detail

exec

public int exec(CommandDispatcher cmdDispatcher)
Description copied from class: AbstractCommand
Abstract redefinition of inherited method. Executes the command.

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

summary

public java.lang.String summary()
Description copied from class: AbstractCommand
Abstract redefinition of inherited method. Retrieves the command's summary.

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

main

public static void main(java.lang.String[] args)
Parameters:
args -

parseCommandLine

public void parseCommandLine(java.lang.String[] args)
                      throws org.apache.commons.cli.ParseException,
                             javax.management.MalformedObjectNameException
Parses the command line arguments into Snap.commandLine.

Parameters:
args - Arguments to parse.
Throws:
org.apache.commons.cli.ParseException - If parsing fails.
javax.management.MalformedObjectNameException - Object name given in the command line is invalid.


Copyright © 2010 OW2 Consortium. All Rights Reserved.