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

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

public class Replay
extends AbstractCommand

Replays an mbeancmd session based on the standard input or a file.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
arguments, logger, name, SIMPLEDATEFORMAT
 
Constructor Summary
Replay()
          Constructor: calls setOptions().
 
Method Summary
 int exec(CommandDispatcher cmdDispatcher)
          Implementation of inherited abstract method.
static void main(java.lang.String[] args)
          Tests the Replay implementation.
 void parseCommandLine(java.lang.String[] args)
          Parses the command line arguments into commandLine.
 java.lang.String summary()
          Implementation of inherited abstract 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

Replay

public Replay()
Constructor: calls setOptions().

Method Detail

exec

public int exec(CommandDispatcher cmdDispatcher)
Implementation of inherited abstract method.

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

summary

public java.lang.String summary()
Implementation of inherited abstract method.

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

main

public static void main(java.lang.String[] args)
Tests the Replay implementation.

Parameters:
args - Arguments to pass to Poll#setArgs.

parseCommandLine

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

Parameters:
args - Arguments to parse.
Throws:
org.apache.commons.cli.ParseException - If parsing fails.


Copyright © 2010 OW2 Consortium. All Rights Reserved.