org.hyperic.sigar.shell
Class ShellCommand_source
java.lang.Object
   org.hyperic.sigar.shell.ShellCommandBase
org.hyperic.sigar.shell.ShellCommandBase
       org.hyperic.sigar.shell.ShellCommand_source
org.hyperic.sigar.shell.ShellCommand_source
- All Implemented Interfaces: 
- ShellCommandHandler, GetlineCompleter
- public class ShellCommand_source 
- extends ShellCommandBase- implements GetlineCompleter
 
 
 
| Method Summary | 
|  java.lang.String | complete(java.lang.String line)
 | 
|  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
 | 
|  void | processCommand(java.lang.String[] args)Handle a command.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ShellCommand_source
public ShellCommand_source()
complete
public java.lang.String complete(java.lang.String line)
- 
- Specified by:
- completein interface- GetlineCompleter
 
- 
 
processCommand
public void processCommand(java.lang.String[] args)
                    throws ShellCommandUsageException,
                           ShellCommandExecException
- Description copied from interface: ShellCommandHandler
- Handle a command.
 
- 
- Specified by:
- processCommandin interface- ShellCommandHandler
- Overrides:
- processCommandin 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:
- getSyntaxArgsin 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:
- getUsageShortin interface- ShellCommandHandler
- Overrides:
- getUsageShortin 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:
- getUsageHelpin interface- ShellCommandHandler
- Overrides:
- getUsageHelpin class- ShellCommandBase
 
- 
- Returns:
- Some usage information on how this command is 
 expected to be invoked.
 
Copyright ? 2004-2009 Hyperic. All Rights Reserved.