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
AbstractOshiSamplers.- Since:
- 1.14
- Author:
- Matteo Sassano
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance. -
Method Summary
Modifier and Type Method Description CPUsCombinedPercSamplercreateSensorCPUsCombinedPerc()Creates an instance ofCPUsCombinedPercSampler.CPUsDetailedPercSamplercreateSensorCPUsDetailedPerc()Creates an instance ofCPUsDetailedPercSampler.DiskUsageSamplercreateSensorDiskUsage()Creates an instance ofDiskUsageSampler.LoadAverageSamplercreateSensorLoadAverage()Creates an instance ofLoadAverageSampler.MemSwapUsageSamplercreateSensorMemSwapUsage()Creates an instance ofMemSwapUsageSampler.NetworkUtilizationSamplercreateSensorNetworkUtilization()Creates an instance ofNetworkUtilizationSampler.oshi.hardware.HardwareAbstractionLayergetHardwareAbstractionLayer()SystemInfoinstance used by thisOshiSamplerFactory.static OshiSamplerFactoryvalueOf(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()SystemInfoinstance used by thisOshiSamplerFactory.- Returns:
- the systemInfo
-
createSensorCPUsCombinedPerc
Creates an instance ofCPUsCombinedPercSampler.- Specified by:
createSensorCPUsCombinedPercin interfaceIOshiSamplerFactory- Returns:
- the created instance.
-
createSensorCPUsDetailedPerc
Creates an instance ofCPUsDetailedPercSampler.- Specified by:
createSensorCPUsDetailedPercin interfaceIOshiSamplerFactory- Returns:
- the created instance.
-
createSensorMemSwapUsage
Creates an instance ofMemSwapUsageSampler.- Specified by:
createSensorMemSwapUsagein interfaceIOshiSamplerFactory- Returns:
- the created instance.
-
createSensorLoadAverage
Creates an instance ofLoadAverageSampler.- Specified by:
createSensorLoadAveragein interfaceIOshiSamplerFactory- Returns:
- the created instance.
-
createSensorNetworkUtilization
Creates an instance ofNetworkUtilizationSampler.- Specified by:
createSensorNetworkUtilizationin interfaceIOshiSamplerFactory- Returns:
- the created instance.
-
createSensorDiskUsage
Creates an instance ofDiskUsageSampler.- Specified by:
createSensorDiskUsagein interfaceIOshiSamplerFactory- Returns:
- the created instance.
-