public final class ProcessInfo.ProcessInfoSnapshot extends Object
Exposes non static process properties and operations computed on them (like isRunning() method).
Operations on non static process properties should all be implemented here.
New snapshots are created when ProcessInfo.refresh() or ProcessInfo.freshSnapshot() are
called.
Note the current implementation does not actually encapsulate these properties for backward compatibility
reasons (we have to keep the write access to ProcessInfo protected properties).
| Constructor and Description |
|---|
ProcessInfo.ProcessInfoSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
org.hyperic.sigar.ProcCpu |
getCpu() |
org.hyperic.sigar.ProcCred |
getCredentials() |
org.hyperic.sigar.ProcCredName |
getCredentialsName() |
String |
getCurrentWorkingDirectory() |
org.hyperic.sigar.ProcExe |
getExecutable() |
org.hyperic.sigar.ProcFd |
getFileDescriptor() |
org.hyperic.sigar.ProcMem |
getMemory() |
long |
getParentPid() |
org.hyperic.sigar.ProcState |
getState() |
org.hyperic.sigar.ProcTime |
getTime() |
boolean |
isRunning()
Checks if the process is alive.
|
public long getParentPid()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcState getState()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcExe getExecutable()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcTime getTime()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcMem getMemory()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcCpu getCpu()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcFd getFileDescriptor()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcCred getCredentials()
throws SystemInfoException
SystemInfoExceptionpublic org.hyperic.sigar.ProcCredName getCredentialsName()
throws SystemInfoException
SystemInfoExceptionpublic String getCurrentWorkingDirectory() throws SystemInfoException
SystemInfoExceptionpublic boolean isRunning()
throws SystemInfoException
SystemInfoExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.