public static final class NodeProcessProperties.Builder
extends java.lang.Object
NodeProcessProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NodeProcessProperties . |
Modifier and Type | Method and Description |
---|---|
NodeProcessProperties |
build() |
NodeProcessProperties.Builder |
setCpuTime(java.lang.Long cpuTime)
CPU time (user and system) consumed by process in milliseconds format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NodeProcessProperties.Builder |
setMemResident(java.lang.Long memResident)
Resident set size of process in bytes format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setMemUsed(java.lang.Long memUsed)
Virtual memory used by process in bytes format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setPid(java.lang.Long pid)
Process id format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setPpid(java.lang.Long ppid)
Parent process id format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setProcessName(java.lang.String processName)
Process name
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setSelf(SelfResourceLink self) |
NodeProcessProperties.Builder |
setStartTime(java.lang.Long startTime)
Process start time expressed in milliseconds since epoch format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeProcessProperties.Builder |
setUptime(java.lang.Long uptime)
Milliseconds since process started format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
public Builder()
NodeProcessProperties
.public NodeProcessProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NodeProcessProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NodeProcessProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NodeProcessProperties.Builder setCpuTime(java.lang.Long cpuTime)
cpuTime
- New value for the property.public NodeProcessProperties.Builder setMemResident(java.lang.Long memResident)
memResident
- New value for the property.public NodeProcessProperties.Builder setMemUsed(java.lang.Long memUsed)
memUsed
- New value for the property.public NodeProcessProperties.Builder setPid(java.lang.Long pid)
pid
- New value for the property.public NodeProcessProperties.Builder setPpid(java.lang.Long ppid)
ppid
- New value for the property.public NodeProcessProperties.Builder setProcessName(java.lang.String processName)
processName
- New value for the property.public NodeProcessProperties.Builder setStartTime(java.lang.Long startTime)
startTime
- New value for the property.public NodeProcessProperties.Builder setUptime(java.lang.Long uptime)
uptime
- New value for the property.public NodeProcessProperties build()