org.rhq.core.system
Class AggregateProcessInfo

java.lang.Object
  extended by org.rhq.core.system.ProcessInfo
      extended by 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.


Nested Class Summary
 class AggregateProcessInfo.AggregateProcCpu
           
 class AggregateProcessInfo.AggregateProcFd
           
 class AggregateProcessInfo.AggregateProcMem
           
 class AggregateProcessInfo.AggregateProcTime
          Aggregates ProcTime data into a single object.
 
Field Summary
 
Fields inherited from class org.rhq.core.system.ProcessInfo
baseName, commandLine, environmentVariables, initialized, name, pid, procCpu, procCred, procCredName, procEnv, procExe, procFd, procMem, procState, procTime, sigar
 
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.
 
Method Summary
 AggregateProcessInfo.AggregateProcCpu getAggregateCpu()
           
 AggregateProcessInfo.AggregateProcFd getAggregateFileDescriptor()
           
 AggregateProcessInfo.AggregateProcMem getAggregateMemory()
           
 AggregateProcessInfo.AggregateProcTime getAggregateTime()
           
 void refresh()
           
 String toString()
           
 
Methods inherited from class org.rhq.core.system.ProcessInfo
destroy, equals, getAggregateProcessTree, getBaseName, getCommandLine, getCpu, getCredentials, getCredentialsName, getCurrentWorkingDirectory, getEnvironmentVariable, getEnvironmentVariables, getExecutable, getFileDescriptor, getMemory, getName, getParentPid, getPid, getState, getTime, hashCode, isRunning
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.