public static final class ProcessInformation.Builder
extends java.lang.Object
ProcessInformation
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ProcessInformation . |
Modifier and Type | Method and Description |
---|---|
ProcessInformation |
build() |
ProcessInformation.Builder |
setCommand(java.lang.String command)
Display the command line used to start the process.
|
ProcessInformation.Builder |
setCpuUsage(java.lang.Double cpuUsage)
The process's share of the elapsed CPU time since the last screen update,
expressed as a percentage of total CPU time.
|
ProcessInformation.Builder |
setMemoryUsage(java.lang.Double memoryUsage)
A process's currently used share of available physical memory.
|
ProcessInformation.Builder |
setNiceValue(java.lang.String niceValue)
A negative nice value means higher priority, whereas a positive nice value means
lower priority.
|
ProcessInformation.Builder |
setProcessId(java.lang.String processId)
Display the process id.
|
ProcessInformation.Builder |
setResidentMemorySize(java.lang.Double residentMemorySize)
The non-swapped physical memoery a task is using.
|
ProcessInformation.Builder |
setSharedMemorySize(java.lang.Double sharedMemorySize)
The amount of shared memory available to a process, not all of which is
typically resident.
|
ProcessInformation.Builder |
setUser(java.lang.String user)
Display the process user.
|
ProcessInformation.Builder |
setVirtualMemorySize(java.lang.Double virtualMemorySize)
The total amount of virtual memory used by the process.
|
public Builder()
ProcessInformation
.public ProcessInformation.Builder setCommand(java.lang.String command)
command
- New value for the property.public ProcessInformation.Builder setCpuUsage(java.lang.Double cpuUsage)
cpuUsage
- New value for the property.public ProcessInformation.Builder setMemoryUsage(java.lang.Double memoryUsage)
memoryUsage
- New value for the property.public ProcessInformation.Builder setNiceValue(java.lang.String niceValue)
niceValue
- New value for the property.public ProcessInformation.Builder setProcessId(java.lang.String processId)
processId
- New value for the property.public ProcessInformation.Builder setResidentMemorySize(java.lang.Double residentMemorySize)
residentMemorySize
- New value for the property.public ProcessInformation.Builder setSharedMemorySize(java.lang.Double sharedMemorySize)
sharedMemorySize
- New value for the property.public ProcessInformation.Builder setUser(java.lang.String user)
user
- New value for the property.public ProcessInformation.Builder setVirtualMemorySize(java.lang.Double virtualMemorySize)
virtualMemorySize
- New value for the property.public ProcessInformation build()