org.rhq.core.system
Class AggregateProcessInfo
java.lang.Object
org.rhq.core.system.ProcessInfo
org.rhq.core.system.AggregateProcessInfo
public class AggregateProcessInfo
- extends ProcessInfo
Tracks the historical usage for child processes as they come and go to give an estimation of the total resources used
by a process and all its children, past and present.
Fields inherited from class org.rhq.core.system.ProcessInfo |
baseName, commandLine, environmentVariables, name, pid, procCpu, procCred, procCredName, procExe, procFd, procMem, procState, procTime |
Constructor Summary |
AggregateProcessInfo(long pid)
Creates an aggregate process info object that will aggregate data related to the process with the given pid and
all its child processes. |
Methods inherited from class org.rhq.core.system.ProcessInfo |
equals, getAggregateProcessTree, getBaseName, getCommandLine, getCpu, getCredentials, getCredentialsName, getEnvironmentVariable, getEnvironmentVariables, getExecutable, getFileDescriptor, getMemory, getName, getParentPid, getPid, getState, getTime, hashCode, isRunning |
AggregateProcessInfo
public AggregateProcessInfo(long pid)
- Creates an aggregate process info object that will aggregate data related to the process with the given pid and
all its child processes.
- Parameters:
pid
- the parent pid whose data, along with its children process data, will be aggregated
refresh
public void refresh()
throws SystemInfoException
- Overrides:
refresh
in class ProcessInfo
- Throws:
SystemInfoException
getAggregateTime
public AggregateProcessInfo.AggregateProcTime getAggregateTime()
getAggregateMemory
public AggregateProcessInfo.AggregateProcMem getAggregateMemory()
getAggregateCpu
public AggregateProcessInfo.AggregateProcCpu getAggregateCpu()
getAggregateFileDescriptor
public AggregateProcessInfo.AggregateProcFd getAggregateFileDescriptor()
toString
public String toString()
- Overrides:
toString
in class ProcessInfo
Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.