org.jcreme.tutorial
Class ProcessInfo

java.lang.Object
  extended byorg.jcreme.tutorial.ProcessInfo

public class ProcessInfo
extends java.lang.Object

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $

Field Summary
protected  java.lang.Double cpuUsage
           
protected  java.lang.Double memoryUsage
           
protected  java.lang.Integer processId
           
protected  java.lang.String processName
           
 
Constructor Summary
ProcessInfo(java.lang.Integer id)
           
 
Method Summary
 java.lang.Double getCPUUsage()
           
 java.lang.Double getMemoryUsage()
           
 java.lang.Integer getProcessId()
           
 java.lang.String getProcessName()
           
 void setCPUUsage(java.lang.Double usage)
           
 void setMemoryUsage(java.lang.Double usage)
           
 void setProcessName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processId

protected java.lang.Integer processId

processName

protected java.lang.String processName

memoryUsage

protected java.lang.Double memoryUsage

cpuUsage

protected java.lang.Double cpuUsage
Constructor Detail

ProcessInfo

public ProcessInfo(java.lang.Integer id)
            throws java.lang.IllegalArgumentException
Parameters:
id -
Throws:
java.lang.IllegalArgumentException
Method Detail

setProcessName

public void setProcessName(java.lang.String name)
Parameters:
name -

getProcessName

public java.lang.String getProcessName()
Returns:
the name of the process.

setMemoryUsage

public void setMemoryUsage(java.lang.Double usage)
Parameters:
usage -

getMemoryUsage

public java.lang.Double getMemoryUsage()
Returns:
the amount memory used by the process.

setCPUUsage

public void setCPUUsage(java.lang.Double usage)
Parameters:
usage -

getCPUUsage

public java.lang.Double getCPUUsage()
Returns:
the amount of CPU used by the process.

getProcessId

public java.lang.Integer getProcessId()
Returns:
the id of the process.


Copyright 2006 null. All Rights Reserved.