Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.util.shell
Class ShellCommand_get

java.lang.Object
  extended by org.hyperic.util.shell.ShellCommandBase
      extended by org.hyperic.util.shell.ShellCommand_get
All Implemented Interfaces:
ShellCommandHandler

public class ShellCommand_get
extends ShellCommandBase


Constructor Summary
ShellCommand_get()
           
 
Method Summary
 java.lang.String getSyntaxArgs()
           
 java.lang.String getUsageHelp(java.lang.String[] args)
          Get some info on how to invoke this command.
 java.lang.String getUsageShort()
          Get a very brief (40 character) description of the command
protected  void printProperty(java.lang.String key, java.lang.String value)
           
 void processCommand(java.lang.String[] args)
          Handle a command.
 
Methods inherited from class org.hyperic.util.shell.ShellCommandBase
getCommandName, getErrStream, getMessages, getMessages, getOutStream, getShell, getSyntax, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellCommand_get

public ShellCommand_get()
Method Detail

printProperty

protected void printProperty(java.lang.String key,
                             java.lang.String value)

processCommand

public void processCommand(java.lang.String[] args)
                    throws ShellCommandUsageException,
                           ShellCommandExecException
Description copied from interface: ShellCommandHandler
Handle a command.

Specified by:
processCommand in interface ShellCommandHandler
Overrides:
processCommand in class ShellCommandBase
Parameters:
args - The args to the command.
Throws:
ShellCommandUsageException - If the args are malformed.
ShellCommandExecException - If an error occurred executing the command.

getSyntaxArgs

public java.lang.String getSyntaxArgs()
Overrides:
getSyntaxArgs in class ShellCommandBase

getUsageShort

public java.lang.String getUsageShort()
Description copied from interface: ShellCommandHandler
Get a very brief (40 character) description of the command

Specified by:
getUsageShort in interface ShellCommandHandler
Overrides:
getUsageShort in class ShellCommandBase
Returns:
A description of the command.

getUsageHelp

public java.lang.String getUsageHelp(java.lang.String[] args)
Description copied from interface: ShellCommandHandler
Get some info on how to invoke this command.

Specified by:
getUsageHelp in interface ShellCommandHandler
Overrides:
getUsageHelp in class ShellCommandBase
Returns:
Some usage information on how this command is expected to be invoked.

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.