Package org.metricshub.ipmi.client
Enum DeviceFunction
- All Implemented Interfaces:
Serializable,Comparable<DeviceFunction>
A function the BMC provides, from the additional device support byte of Get Device ID (IPMI 2.0 table 20-2).
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe device bridges messages to other channels (bit 6).The device implements the chassis commands (bit 7).The device holds a FRU inventory (bit 3).The device generates events over the IPMB (bit 5).The device receives events over the IPMB (bit 4).The device holds the SDR repository (bit 1).The device holds the System Event Log (bit 2).The device has sensors (bit 0). -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSetIn(byte additionalDeviceSupport) Tells whether this function is flagged in the additional device support byte.static DeviceFunctionReturns the enum constant of this type with the specified name.static DeviceFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SENSOR_DEVICE
The device has sensors (bit 0). -
SDR_REPOSITORY_DEVICE
The device holds the SDR repository (bit 1). -
SEL_DEVICE
The device holds the System Event Log (bit 2). -
FRU_INVENTORY_DEVICE
The device holds a FRU inventory (bit 3). -
IPMB_EVENT_RECEIVER
The device receives events over the IPMB (bit 4). -
IPMB_EVENT_GENERATOR
The device generates events over the IPMB (bit 5). -
BRIDGE
The device bridges messages to other channels (bit 6). -
CHASSIS_DEVICE
The device implements the chassis commands (bit 7).
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isSetIn
public boolean isSetIn(byte additionalDeviceSupport) Tells whether this function is flagged in the additional device support byte.- Parameters:
additionalDeviceSupport- the byte- Returns:
- true when the bit of this function is set
-