Package kieker.monitoring.sampler.oshi
Enum OshiSamplerFactory
java.lang.Object
java.lang.Enum<OshiSamplerFactory>
kieker.monitoring.sampler.oshi.OshiSamplerFactory
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OshiSamplerFactory>
,java.lang.constant.Constable
,IOshiSamplerFactory
public enum OshiSamplerFactory extends java.lang.Enum<OshiSamplerFactory> implements IOshiSamplerFactory
Provides factory methods for
AbstractOshiSampler
s.- Since:
- 1.14
- Author:
- Matteo Sassano
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance. -
Method Summary
Modifier and Type Method Description CPUsCombinedPercSampler
createSensorCPUsCombinedPerc()
Creates an instance ofCPUsCombinedPercSampler
.CPUsDetailedPercSampler
createSensorCPUsDetailedPerc()
Creates an instance ofCPUsDetailedPercSampler
.DiskUsageSampler
createSensorDiskUsage()
Creates an instance ofDiskUsageSampler
.LoadAverageSampler
createSensorLoadAverage()
Creates an instance ofLoadAverageSampler
.MemSwapUsageSampler
createSensorMemSwapUsage()
Creates an instance ofMemSwapUsageSampler
.NetworkUtilizationSampler
createSensorNetworkUtilization()
Creates an instance ofNetworkUtilizationSampler
.oshi.hardware.HardwareAbstractionLayer
getHardwareAbstractionLayer()
SystemInfo
instance used by thisOshiSamplerFactory
.static OshiSamplerFactory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OshiSamplerFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getHardwareAbstractionLayer
public final oshi.hardware.HardwareAbstractionLayer getHardwareAbstractionLayer()SystemInfo
instance used by thisOshiSamplerFactory
.- Returns:
- the systemInfo
-
createSensorCPUsCombinedPerc
Creates an instance ofCPUsCombinedPercSampler
.- Specified by:
createSensorCPUsCombinedPerc
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-
createSensorCPUsDetailedPerc
Creates an instance ofCPUsDetailedPercSampler
.- Specified by:
createSensorCPUsDetailedPerc
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-
createSensorMemSwapUsage
Creates an instance ofMemSwapUsageSampler
.- Specified by:
createSensorMemSwapUsage
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-
createSensorLoadAverage
Creates an instance ofLoadAverageSampler
.- Specified by:
createSensorLoadAverage
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-
createSensorNetworkUtilization
Creates an instance ofNetworkUtilizationSampler
.- Specified by:
createSensorNetworkUtilization
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-
createSensorDiskUsage
Creates an instance ofDiskUsageSampler
.- Specified by:
createSensorDiskUsage
in interfaceIOshiSamplerFactory
- Returns:
- the created instance.
-