Package com.vmware.nsx_policy.model
Class ProcessInformation.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ProcessInformation.Builder
-
- Enclosing class:
- ProcessInformation
public static final class ProcessInformation.Builder extends java.lang.Object
Builder class forProcessInformation
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofProcessInformation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofProcessInformation
.
-
-
Method Detail
-
setCommand
public ProcessInformation.Builder setCommand(java.lang.String command)
Display the command line used to start the process.- Parameters:
command
- New value for the property.
-
setCpuUsage
public 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.- Parameters:
cpuUsage
- New value for the property.
-
setMemoryUsage
public ProcessInformation.Builder setMemoryUsage(java.lang.Double memoryUsage)
A process's currently used share of available physical memory.- Parameters:
memoryUsage
- New value for the property.
-
setNiceValue
public ProcessInformation.Builder setNiceValue(java.lang.String niceValue)
A negative nice value means higher priority, whereas a positive nice value means lower priority. Zero in this field simply means priority will not be adjusted in determining a process's dispatch-ability.- Parameters:
niceValue
- New value for the property.
-
setProcessId
public ProcessInformation.Builder setProcessId(java.lang.String processId)
Display the process id.- Parameters:
processId
- New value for the property.
-
setResidentMemorySize
public ProcessInformation.Builder setResidentMemorySize(java.lang.Double residentMemorySize)
The non-swapped physical memoery a task is using.- Parameters:
residentMemorySize
- New value for the property.
-
setSharedMemorySize
public ProcessInformation.Builder setSharedMemorySize(java.lang.Double sharedMemorySize)
The amount of shared memory available to a process, not all of which is typically resident. It simply reflects memory that could be potentially shared with other processes.- Parameters:
sharedMemorySize
- New value for the property.
-
setUser
public ProcessInformation.Builder setUser(java.lang.String user)
Display the process user.- Parameters:
user
- New value for the property.
-
setVirtualMemorySize
public ProcessInformation.Builder setVirtualMemorySize(java.lang.Double virtualMemorySize)
The total amount of virtual memory used by the process. It includes all code, data and shared libraries plus pages that have been swapped out and pages that have been mapped but not used.- Parameters:
virtualMemorySize
- New value for the property.
-
build
public ProcessInformation build()
-
-