Package com.vmware.nsx_policy.model
Class NodeStatusProperties.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NodeStatusProperties.Builder
-
- Enclosing class:
- NodeStatusProperties
public static final class NodeStatusProperties.Builder extends java.lang.Object
Builder class forNodeStatusProperties
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNodeStatusProperties
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeStatusProperties
build()
NodeStatusProperties.Builder
setCpuCores(java.lang.Long cpuCores)
Number of CPU cores on the system 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.NodeStatusProperties.Builder
setCpuSockets(java.lang.Long cpuSockets)
Number of CPU sockets on the system 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.NodeStatusProperties.Builder
setCpuUsage(CpuUsage cpuUsage)
NodeStatusProperties.Builder
setDfwHeapMemoryUsage(java.util.List<DfwHeapMemoryUsage> dfwHeapMemoryUsage)
NodeStatusProperties.Builder
setDiskSpaceTotal(java.lang.Long diskSpaceTotal)
Amount of disk space available on the system, in kilobytes.NodeStatusProperties.Builder
setDiskSpaceUsed(java.lang.Long diskSpaceUsed)
Amount of disk space in use on the system, in kilobytes 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.NodeStatusProperties.Builder
setDpdkCpuCores(java.lang.Long dpdkCpuCores)
Number of DPDK cores on Edge Node which are used for packet IO processing.NodeStatusProperties.Builder
setDpus(java.util.List<DpuStatusProperties> dpus)
Data processing units on the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.NodeStatusProperties.Builder
setEdgeMemUsage(EdgeTransportNodeMemoryUsage edgeMemUsage)
NodeStatusProperties.Builder
setFileSystems(java.util.List<NodeFileSystemProperties> fileSystems)
File systems configured on the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.NodeStatusProperties.Builder
setHostname(java.lang.String hostname)
Host name of the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.NodeStatusProperties.Builder
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.NodeStatusProperties.Builder
setLoadAverage(java.util.List<java.lang.Double> loadAverage)
One, five, and fifteen minute load averages for the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.NodeStatusProperties.Builder
setMemCache(java.lang.Long memCache)
Amount of RAM on the system that can be flushed out to disk, in kilobytes 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.NodeStatusProperties.Builder
setMemTotal(java.lang.Long memTotal)
Amount of RAM allocated to the system, in kilobytes 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.NodeStatusProperties.Builder
setMemUsed(java.lang.Long memUsed)
Amount of RAM in use on the system, in kilobytes 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.NodeStatusProperties.Builder
setNonDpdkCpuCores(java.lang.Long nonDpdkCpuCores)
Number of non-DPDK cores on Edge Node.NodeStatusProperties.Builder
setRemoteLoggingServerConfigured(java.lang.Boolean remoteLoggingServerConfigured)
Indicates if remote logging server is configured.NodeStatusProperties.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.NodeStatusProperties.Builder
setSelf(SelfResourceLink self)
NodeStatusProperties.Builder
setSource(java.lang.String source)
Possible values are:NodeStatusProperties.SOURCE_REALTIME
NodeStatusProperties.SOURCE_CACHED
Source of status data.NodeStatusProperties.Builder
setSwapTotal(java.lang.Long swapTotal)
Amount of disk available for swap, in kilobytes 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.NodeStatusProperties.Builder
setSwapUsed(java.lang.Long swapUsed)
Amount of swap disk in use, in kilobytes 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.NodeStatusProperties.Builder
setSystemTime(java.lang.Long systemTime)
Current 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.NodeStatusProperties.Builder
setUptime(java.lang.Long uptime)
Milliseconds since system start 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNodeStatusProperties
.
-
-
Method Detail
-
setLinks
public NodeStatusProperties.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links
- New value for the property.
-
setSchema
public NodeStatusProperties.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.- Parameters:
schema
- New value for the property.
-
setSelf
public NodeStatusProperties.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setCpuCores
public NodeStatusProperties.Builder setCpuCores(java.lang.Long cpuCores)
Number of CPU cores on the system 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.- Parameters:
cpuCores
- New value for the property.
-
setCpuSockets
public NodeStatusProperties.Builder setCpuSockets(java.lang.Long cpuSockets)
Number of CPU sockets on the system 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.- Parameters:
cpuSockets
- New value for the property.
-
setCpuUsage
public NodeStatusProperties.Builder setCpuUsage(CpuUsage cpuUsage)
- Parameters:
cpuUsage
- New value for the property.
-
setDfwHeapMemoryUsage
public NodeStatusProperties.Builder setDfwHeapMemoryUsage(java.util.List<DfwHeapMemoryUsage> dfwHeapMemoryUsage)
- Parameters:
dfwHeapMemoryUsage
- New value for the property.
-
setDiskSpaceTotal
public NodeStatusProperties.Builder setDiskSpaceTotal(java.lang.Long diskSpaceTotal)
Amount of disk space available on the system, in kilobytes. 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.- Parameters:
diskSpaceTotal
- New value for the property.
-
setDiskSpaceUsed
public NodeStatusProperties.Builder setDiskSpaceUsed(java.lang.Long diskSpaceUsed)
Amount of disk space in use on the system, in kilobytes 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.- Parameters:
diskSpaceUsed
- New value for the property.
-
setDpdkCpuCores
public NodeStatusProperties.Builder setDpdkCpuCores(java.lang.Long dpdkCpuCores)
Number of DPDK cores on Edge Node which are used for packet IO processing. 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.- Parameters:
dpdkCpuCores
- New value for the property.
-
setDpus
public NodeStatusProperties.Builder setDpus(java.util.List<DpuStatusProperties> dpus)
Data processing units on the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dpus
- New value for the property.
-
setEdgeMemUsage
public NodeStatusProperties.Builder setEdgeMemUsage(EdgeTransportNodeMemoryUsage edgeMemUsage)
- Parameters:
edgeMemUsage
- New value for the property.
-
setFileSystems
public NodeStatusProperties.Builder setFileSystems(java.util.List<NodeFileSystemProperties> fileSystems)
File systems configured on the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
fileSystems
- New value for the property.
-
setHostname
public NodeStatusProperties.Builder setHostname(java.lang.String hostname)
Host name of the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
hostname
- New value for the property.
-
setLoadAverage
public NodeStatusProperties.Builder setLoadAverage(java.util.List<java.lang.Double> loadAverage)
One, five, and fifteen minute load averages for the system This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
loadAverage
- New value for the property.
-
setMemCache
public NodeStatusProperties.Builder setMemCache(java.lang.Long memCache)
Amount of RAM on the system that can be flushed out to disk, in kilobytes 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.- Parameters:
memCache
- New value for the property.
-
setMemTotal
public NodeStatusProperties.Builder setMemTotal(java.lang.Long memTotal)
Amount of RAM allocated to the system, in kilobytes 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.- Parameters:
memTotal
- New value for the property.
-
setMemUsed
public NodeStatusProperties.Builder setMemUsed(java.lang.Long memUsed)
Amount of RAM in use on the system, in kilobytes 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.- Parameters:
memUsed
- New value for the property.
-
setNonDpdkCpuCores
public NodeStatusProperties.Builder setNonDpdkCpuCores(java.lang.Long nonDpdkCpuCores)
Number of non-DPDK cores on Edge Node. 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.- Parameters:
nonDpdkCpuCores
- New value for the property.
-
setRemoteLoggingServerConfigured
public NodeStatusProperties.Builder setRemoteLoggingServerConfigured(java.lang.Boolean remoteLoggingServerConfigured)
Indicates if remote logging server is configured. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
remoteLoggingServerConfigured
- New value for the property.
-
setSource
public NodeStatusProperties.Builder setSource(java.lang.String source)
Possible values are: Source of status data. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
source
- New value for the property.
-
setSwapTotal
public NodeStatusProperties.Builder setSwapTotal(java.lang.Long swapTotal)
Amount of disk available for swap, in kilobytes 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.- Parameters:
swapTotal
- New value for the property.
-
setSwapUsed
public NodeStatusProperties.Builder setSwapUsed(java.lang.Long swapUsed)
Amount of swap disk in use, in kilobytes 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.- Parameters:
swapUsed
- New value for the property.
-
setSystemTime
public NodeStatusProperties.Builder setSystemTime(java.lang.Long systemTime)
Current 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.- Parameters:
systemTime
- New value for the property.
-
setUptime
public NodeStatusProperties.Builder setUptime(java.lang.Long uptime)
Milliseconds since system start 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.- Parameters:
uptime
- New value for the property.
-
build
public NodeStatusProperties build()
-
-