Package org.onosproject.cpman
Interface SystemInfo
-
public interface SystemInfo
System information interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SystemInfo.Builder
A builder of SystemInfo.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
coreCount()
Returns number of CPU cores.int
cpuCount()
Returns number of CPUs.int
cpuSpeed()
Returns CPU speed in MHz.int
totalMemory()
Returns the total amount of memory in Mega Bytes.
-
-
-
Method Detail
-
coreCount
int coreCount()
Returns number of CPU cores.- Returns:
- number of CPU cores
-
cpuCount
int cpuCount()
Returns number of CPUs.- Returns:
- number of CPUs
-
cpuSpeed
int cpuSpeed()
Returns CPU speed in MHz.- Returns:
- CPU speed
-
totalMemory
int totalMemory()
Returns the total amount of memory in Mega Bytes.- Returns:
- memory size
-
-