|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
org.ow2.jasmine.monitoring.mbeancmd.commands.Replay
public class Replay
Replays an mbeancmd session based on the standard input or a file.
Field Summary | |
---|---|
private java.lang.String[] |
columns
Columns to output. |
private org.apache.commons.cli.CommandLine |
commandLine
Command line arguments. |
private java.lang.String |
graphDef
Graph definitions, null for no graph output. |
private java.lang.String |
inputFile
Input file name, null for no file input. |
private boolean |
isColumnOption
Only output certain columns ? |
private boolean |
isRowMatchOption
Filter rows ? |
private boolean |
isSeparator
Is separator set ? |
private boolean |
isTimeMatchOption
Filter time ? |
private org.apache.commons.cli.Options |
options
List of options that should be parsed from the command line. |
private java.lang.String |
outputFilePath
Output file path, null for no file output. |
private java.lang.String |
rowMatchPattern
Row filter pattern. |
private java.lang.String |
separator
Separator to use. |
private java.lang.String[] |
timeMatchArgs
Time filter arguments. |
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand |
---|
arguments, name, simpleDateFormat |
Constructor Summary | |
---|---|
Replay()
Constructor: calls setOptions() . |
Method Summary | |
---|---|
void |
exec()
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 . |
private void |
setOptions()
Sets all options that are parseable from the command line. |
java.lang.String |
summary()
Implementation of inherited abstract method. |
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand |
---|
Exit, getHelpDoc, getName, help, setArgs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.commons.cli.Options options
private org.apache.commons.cli.CommandLine commandLine
private java.lang.String inputFile
private java.lang.String graphDef
private java.lang.String outputFilePath
private boolean isRowMatchOption
private java.lang.String rowMatchPattern
private boolean isTimeMatchOption
private java.lang.String[] timeMatchArgs
private boolean isSeparator
private java.lang.String separator
private boolean isColumnOption
private java.lang.String[] columns
Constructor Detail |
---|
public Replay()
setOptions()
.
Method Detail |
---|
public void exec()
exec
in interface Command
exec
in class AbstractCommand
AbstractCommand.exec()
public java.lang.String summary()
summary
in interface Command
summary
in class AbstractCommand
AbstractCommand.summary()
public static void main(java.lang.String[] args)
args
- Arguments to pass to Poll#setArgs.public void parseCommandLine(java.lang.String[] args) throws org.apache.commons.cli.ParseException
commandLine
.
args
- Arguments to parse.
org.apache.commons.cli.ParseException
- If parsing fails.private void setOptions()
options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |