org.ow2.jasmine.monitoring.mbeancmd.commands
Class JDBCConnections
java.lang.Object
org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
org.ow2.jasmine.monitoring.mbeancmd.commands.JDBCConnections
- All Implemented Interfaces:
- Command
public class JDBCConnections
- extends AbstractCommand
Command that dumps JDBC Connections information on a given J2EE server.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCConnections
public JDBCConnections()
- Constructor: calls
setOptions().
exec
public int exec(CommandDispatcher cmdDispatcher)
- Implementation of inherited abstract method.
Executes the command.
- Specified by:
exec in interface Command- Specified by:
exec in class AbstractCommand
- Parameters:
cmdDispatcher - the command dispatcher
- Returns:
- 0 if succeeded, an error code otherwise.
- See Also:
AbstractCommand#exec()
parseCommandLine
public void parseCommandLine(String[] args)
throws org.apache.commons.cli.ParseException,
MalformedObjectNameException
- Parses the command line arguments into
commandLine.
- Parameters:
args - Arguments to parse.
- Throws:
org.apache.commons.cli.ParseException - If parsing fails.
MalformedObjectNameException - Object name given in the command line is invalid.
summary
public String summary()
- 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:
AbstractCommand.summary()
Copyright © 2012 OW2 Consortium. All Rights Reserved.