FileDocCategorySizeDatePackage
SampleCommand.javaAPI DocGlassfish v2 API3028Fri May 04 22:25:12 BST 2007com.sun.enterprise.cli.commands

SampleCommand

public class SampleCommand extends Command
This is a sample command
version
$Revision: 1.4 $

Fields Summary
Constructors Summary
Methods Summary
public voidrunCommand()
A method that Executes the command

throws
CommandException

        CLILogger.getInstance().printMessage("**************************************");
        CLILogger.getInstance().printMessage("*  Hello, this is a sample command.  *");
        CLILogger.getInstance().printMessage("**************************************");
    
public booleanvalidateOptions()
A 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.

return
boolean returns true if success else returns false

	return true;