org.hyperic.sigar.cmd
Class Ps
java.lang.Object
   org.hyperic.sigar.shell.ShellCommandBase
org.hyperic.sigar.shell.ShellCommandBase
       org.hyperic.sigar.cmd.SigarCommandBase
org.hyperic.sigar.cmd.SigarCommandBase
           org.hyperic.sigar.cmd.Ps
org.hyperic.sigar.cmd.Ps
- All Implemented Interfaces: 
- ShellCommandHandler, GetlineCompleter
- public class Ps 
- extends SigarCommandBase
Show process status.
 
 
 
 
 
| Methods inherited from class org.hyperic.sigar.cmd.SigarCommandBase | 
| complete, completePid, flush, getCompleter, getCompletions, getFormatter, printf, printf, printf, println, processCommand, setOutputFormat, sprintf | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Ps
public Ps(Shell shell)
Ps
public Ps()
validateArgs
protected boolean validateArgs(java.lang.String[] args)
- 
- Overrides:
- validateArgsin class- SigarCommandBase
 
- 
 
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.
 
isPidCompleter
public boolean isPidCompleter()
- 
- Overrides:
- isPidCompleterin class- SigarCommandBase
 
- 
 
output
public void output(java.lang.String[] args)
            throws SigarException
- 
- Specified by:
- outputin class- SigarCommandBase
 
- 
- Throws:
- SigarException
 
join
public static java.lang.String join(java.util.List info)
- 
 
getInfo
public static java.util.List getInfo(SigarProxy sigar,
                                     long pid)
                              throws SigarException
- 
- Throws:
- SigarException
 
output
public void output(long pid)
            throws SigarException
- 
- Throws:
- SigarException
 
getCpuTime
public static java.lang.String getCpuTime(long total)
- 
 
getCpuTime
public static java.lang.String getCpuTime(ProcTime time)
- 
 
main
public static void main(java.lang.String[] args)
                 throws java.lang.Exception
- 
- Throws:
- java.lang.Exception
 
Copyright ? 2004-2009 Hyperic. All Rights Reserved.