org.hyperic.sigar.cmd
Class PTQL

java.lang.Object
  extended byorg.hyperic.sigar.shell.ShellCommandBase
      extended byorg.hyperic.sigar.shell.MultiwordShellCommand
          extended byorg.hyperic.sigar.cmd.PTQL
All Implemented Interfaces:
GetlineCompleter, ShellCommandHandler

public class PTQL
extends MultiwordShellCommand
implements GetlineCompleter

Run process table queries.

See Also:
ProcessQueryBuilder

Field Summary
 
Fields inherited from class org.hyperic.sigar.shell.ShellCommandBase
itsCommandName, itsShell
 
Constructor Summary
PTQL(Shell shell)
           
 
Method Summary
 java.lang.String complete(java.lang.String line)
           
 java.lang.String getSyntaxArgs()
           
 java.lang.String getUsageShort()
          Get a very brief (40 character) description of the command
 void init(java.lang.String commandName, ShellBase shell)
          Initialize this command handler.
 void processCommand(java.lang.String[] args)
          Handle a command.
 
Methods inherited from class org.hyperic.sigar.shell.MultiwordShellCommand
getHandlerNames, getSubHandler, getUsageHelp, registerSubHandler
 
Methods inherited from class org.hyperic.sigar.shell.ShellCommandBase
getCommandName, getErrStream, getOutStream, getShell, getSyntax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTQL

public PTQL(Shell shell)
Method Detail

complete

public java.lang.String complete(java.lang.String line)
Specified by:
complete in interface GetlineCompleter

init

public void init(java.lang.String commandName,
                 ShellBase shell)
          throws ShellCommandInitException
Description copied from interface: ShellCommandHandler
Initialize this command handler.

Specified by:
init in interface ShellCommandHandler
Overrides:
init in class ShellCommandBase
Throws:
ShellCommandInitException

getSyntaxArgs

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

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

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 MultiwordShellCommand
Throws:
ShellCommandUsageException
ShellCommandExecException


Copyright © 2004-2006 Hyperic. All Rights Reserved.