Methods Summary |
---|
protected java.lang.String | getOperationName()
String operationName = SUMMARY_OPERATION;
if (typeOption.equals("memory"))
operationName = MEMORY_OPERATION;
else if (typeOption.equals("class"))
operationName = CLASS_OPERATION;
else if (typeOption.equals("thread"))
operationName = THREADDUMP_OPERATION;
return operationName;
|
protected void | handleReturnValue(java.lang.Object returnval)
final Class cl = returnval.getClass();
if (cl.getName().equals(String.class.getName()))
{
final String returnString = (String)returnval;
CLILogger.getInstance().printMessage(returnString);
}
|
public boolean | validateOptions()An abstract method that validates the options
on the specification in the xml properties file
This method verifies for the correctness of number of
operands and if all the required options are supplied by the client.
if (!super.validateOptions())
return false;
typeOption = getOption(TYPE_OPTION);
if (typeOption.matches("summary|memory|class|thread"))
{
return true;
}
else
{
throw new CommandValidationException(getLocalizedString(
"InvalidTypeOption"));
}
|