org.hyperic.sigar.shell
Class MultiwordShellCommand
java.lang.Object
   org.hyperic.sigar.shell.ShellCommandBase
org.hyperic.sigar.shell.ShellCommandBase
       org.hyperic.sigar.shell.MultiwordShellCommand
org.hyperic.sigar.shell.MultiwordShellCommand
- All Implemented Interfaces: 
- ShellCommandHandler
- public class MultiwordShellCommand 
- extends ShellCommandBase
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MultiwordShellCommand
public MultiwordShellCommand()
getSubHandler
public ShellCommandHandler getSubHandler(java.lang.String subName)
- 
 
getHandlerNames
public java.util.Set getHandlerNames()
- 
 
registerSubHandler
public void registerSubHandler(java.lang.String subName,
                               ShellCommandHandler handler)
                        throws ShellCommandInitException
- 
- Throws:
- ShellCommandInitException
 
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
 
- 
 
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.