Class GetSelInfoResponseData
java.lang.Object
org.metricshub.ipmi.core.coding.commands.sel.GetSelInfoResponseData
- All Implemented Interfaces:
ResponseData
The reply to Get SEL Info (IPMI 2.0 section 31.2): the version of the SEL, its number of entries and the times of
its last addition and erasure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the time of the most recent addition to the SEL as the BMC sent it: aDateof the unsigned 32-bit number of seconds, with no UTC offset applied.intReturns the number of entries in the SEL.Returns the time of the most recent erasure of SEL entries as the BMC sent it: aDateof the unsigned 32-bit number of seconds, with no UTC offset applied.intReturns the version of the SEL command set, BCD-decoded: 15 for 51h, version 1.5.voidsetAdditionTimestamp(Date additionTimestamp) Sets the time of the most recent addition to the SEL.voidsetEntriesCount(int entriesCount) Sets the number of entries in the SEL.voidsetEraseTimestamp(Date eraseTimestamp) Sets the time of the most recent erasure of SEL entries.voidsetSelVersion(int selVersion) Sets the version of the SEL command set.
-
Constructor Details
-
GetSelInfoResponseData
public GetSelInfoResponseData()
-
-
Method Details
-
getSelVersion
public int getSelVersion()Returns the version of the SEL command set, BCD-decoded: 15 for 51h, version 1.5.- Returns:
- the SEL version, 15 for version 1.5
-
setSelVersion
public void setSelVersion(int selVersion) Sets the version of the SEL command set.- Parameters:
selVersion- the SEL version, BCD-decoded (15 for version 1.5)
-
getEntriesCount
public int getEntriesCount()Returns the number of entries in the SEL.- Returns:
- the number of entries
-
setEntriesCount
public void setEntriesCount(int entriesCount) Sets the number of entries in the SEL.- Parameters:
entriesCount- the number of entries
-
getAdditionTimestamp
Returns the time of the most recent addition to the SEL as the BMC sent it: aDateof the unsigned 32-bit number of seconds, with no UTC offset applied. FFFFFFFFh means that no entry was ever added, or that the BMC lost the value.- Returns:
- the time of the most recent addition
-
setAdditionTimestamp
Sets the time of the most recent addition to the SEL.- Parameters:
additionTimestamp- the time of the most recent addition, as the BMC sent it
-
getEraseTimestamp
Returns the time of the most recent erasure of SEL entries as the BMC sent it: aDateof the unsigned 32-bit number of seconds, with no UTC offset applied.- Returns:
- the time of the most recent erasure
-
setEraseTimestamp
Sets the time of the most recent erasure of SEL entries.- Parameters:
eraseTimestamp- the time of the most recent erasure, as the BMC sent it
-