Class OpenBsdCentralProcessor
java.lang.Object
oshi.hardware.common.AbstractCentralProcessor
oshi.hardware.platform.unix.openbsd.OpenBsdCentralProcessor
- All Implemented Interfaces:
- CentralProcessor
OpenBSD Central Processor implementation
- 
Nested Class SummaryNested classes/interfaces inherited from interface oshi.hardware.CentralProcessorCentralProcessor.LogicalProcessor, CentralProcessor.PhysicalProcessor, CentralProcessor.ProcessorCache, CentralProcessor.ProcessorIdentifier, CentralProcessor.TickType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondouble[]getSystemLoadAverage(int nelem) Returns the system load average for the number of elements specified, up to 3, representing 1, 5, and 15 minutes.protected Quartet<List<CentralProcessor.LogicalProcessor>, List<CentralProcessor.PhysicalProcessor>, List<CentralProcessor.ProcessorCache>, List<String>> Initializes logical and physical processor lists and feature flags.protected longGet number of context switchesprotected long[]Get processor current frequency.protected longGet number of interruptsprotected long[][]Get the processor CPU load ticksprotected CentralProcessor.ProcessorIdentifierUpdates logical and physical processor counts and arraysprotected long[]Get the system CPU load ticksMethods inherited from class oshi.hardware.common.AbstractCentralProcessorcreateProcessorID, createProcListFromDmesg, getContextSwitches, getCurrentFreq, getFeatureFlags, getInterrupts, getLogicalProcessorCount, getLogicalProcessors, getMaxFreq, getPhysicalPackageCount, getPhysicalProcessorCount, getPhysicalProcessors, getProcessorCaches, getProcessorCpuLoadBetweenTicks, getProcessorCpuLoadTicks, getProcessorIdentifier, getSystemCpuLoadBetweenTicks, getSystemCpuLoadTicks, orderedProcCaches, queryMaxFreq, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.hardware.CentralProcessorgetProcessorCpuLoad, getSystemCpuLoad
- 
Constructor Details- 
OpenBsdCentralProcessorpublic OpenBsdCentralProcessor()
 
- 
- 
Method Details- 
queryProcessorIdDescription copied from class:AbstractCentralProcessorUpdates logical and physical processor counts and arrays- Specified by:
- queryProcessorIdin class- AbstractCentralProcessor
- Returns:
- An array of initialized Logical Processors
 
- 
queryCurrentFreqprotected long[] queryCurrentFreq()Description copied from class:AbstractCentralProcessorGet processor current frequency.- Specified by:
- queryCurrentFreqin class- AbstractCentralProcessor
- Returns:
- The current frequency.
 
- 
initProcessorCountsprotected Quartet<List<CentralProcessor.LogicalProcessor>,List<CentralProcessor.PhysicalProcessor>, initProcessorCounts()List<CentralProcessor.ProcessorCache>, List<String>> Description copied from class:AbstractCentralProcessorInitializes logical and physical processor lists and feature flags.- Specified by:
- initProcessorCountsin class- AbstractCentralProcessor
- Returns:
- Lists of initialized Logical Processors, Physical Processors, Processor Caches, and Feature Flags.
 
- 
queryContextSwitchesprotected long queryContextSwitches()Get number of context switches- Specified by:
- queryContextSwitchesin class- AbstractCentralProcessor
- Returns:
- The context switches
 
- 
queryInterruptsprotected long queryInterrupts()Get number of interrupts- Specified by:
- queryInterruptsin class- AbstractCentralProcessor
- Returns:
- The interrupts
 
- 
querySystemCpuLoadTicksprotected long[] querySystemCpuLoadTicks()Get the system CPU load ticks- Specified by:
- querySystemCpuLoadTicksin class- AbstractCentralProcessor
- Returns:
- The system CPU load ticks
 
- 
queryProcessorCpuLoadTicksprotected long[][] queryProcessorCpuLoadTicks()Get the processor CPU load ticks- Specified by:
- queryProcessorCpuLoadTicksin class- AbstractCentralProcessor
- Returns:
- The processor CPU load ticks
 
- 
getSystemLoadAveragepublic double[] getSystemLoadAverage(int nelem) Returns the system load average for the number of elements specified, up to 3, representing 1, 5, and 15 minutes. The system load average is the sum of the number of runnable entities queued to the available processors and the number of runnable entities running on the available processors averaged over a period of time. The way in which the load average is calculated is operating system specific but is typically a damped time-dependent average. If the load average is not available, a negative value is returned. This method is designed to provide a hint about the system load and may be queried frequently.The load average may be unavailable on some platforms (e.g., Windows) where it is expensive to implement this method. - Parameters:
- nelem- Number of elements to return.
- Returns:
- an array of the system load averages for 1, 5, and 15 minutes with the size of the array specified by nelem; or negative values if not available.
 
 
-