Package org.onosproject.cpman
Interface SystemInfo.Builder
-
- Enclosing interface:
- SystemInfo
public static interface SystemInfo.Builder
A builder of SystemInfo.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemInfo
build()
Builds a SystemInfo object.SystemInfo.Builder
cpuSpeed(int cpuSpeedMhz)
Sets CPU speed.SystemInfo.Builder
numOfCores(int numOfCores)
Sets number of CPU cores.SystemInfo.Builder
numOfCpus(int numOfCpus)
Sets number of CPUs.SystemInfo.Builder
totalMemory(int totalMemoryMbytes)
Sets total amount of memory.
-
-
-
Method Detail
-
numOfCores
SystemInfo.Builder numOfCores(int numOfCores)
Sets number of CPU cores.- Parameters:
numOfCores
- number of CPU cores- Returns:
- Builder object
-
numOfCpus
SystemInfo.Builder numOfCpus(int numOfCpus)
Sets number of CPUs.- Parameters:
numOfCpus
- number of CPUs- Returns:
- Builder object
-
cpuSpeed
SystemInfo.Builder cpuSpeed(int cpuSpeedMhz)
Sets CPU speed.- Parameters:
cpuSpeedMhz
- CPU speed in Mhz- Returns:
- Builder object
-
totalMemory
SystemInfo.Builder totalMemory(int totalMemoryMbytes)
Sets total amount of memory.- Parameters:
totalMemoryMbytes
- memory size in Mega Bytes- Returns:
- Builder object
-
build
SystemInfo build()
Builds a SystemInfo object.- Returns:
- SystemInfo object
-
-