Package org.metricshub.ipmi.client
Class SelEntryList
The entries read from the System Event Log by
SelRequest.execute(), in the order of the log, with what
Get SEL Info says of the whole log: how many entries it holds, and when it was last written and erased.-
Method Summary
Modifier and TypeMethodDescriptionget(int index) info()Returns the Get SEL Info reply of the protocol core, for everything else.Returns when an entry was last added to the log.Returns when the log was last cleared: after a clear, the record IDs start over, and an entry read before is no longer the one itsIDnames.intsize()toString()Returns how many entries the whole log holds, which is more thansize()afterSelRequest.since(int).intReturns the offset from UTC of the SEL time, which a BMC that keeps its SEL time as local time reports with Get SEL Time UTC Offset (IPMI 2.0 revision 1.1): already applied to every timestamp of the list and its entries. 0 for a BMC without the command, whose SEL time is UTC.Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Method Details
-
utcOffsetMinutes
public int utcOffsetMinutes()Returns the offset from UTC of the SEL time, which a BMC that keeps its SEL time as local time reports with Get SEL Time UTC Offset (IPMI 2.0 revision 1.1): already applied to every timestamp of the list and its entries. 0 for a BMC without the command, whose SEL time is UTC. It is the offset in force when the log was read: the log records none per entry, so an entry logged under another offset (before a daylight saving change) comes out shifted by the difference.- Returns:
- the offset in minutes, local time = UTC + offset
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<SelEntry>- Specified by:
sizein interfaceList<SelEntry>- Specified by:
sizein classAbstractCollection<SelEntry>
-
totalEntries
Returns how many entries the whole log holds, which is more thansize()afterSelRequest.since(int).- Returns:
- the number of entries of the log, empty when the BMC refused Get SEL Info
-
lastAddition
Returns when an entry was last added to the log.- Returns:
- the time of the most recent addition, empty when the BMC refused Get SEL Info or reports none
-
lastErase
Returns when the log was last cleared: after a clear, the record IDs start over, and an entry read before is no longer the one itsIDnames.- Returns:
- the time of the most recent erase, empty when the BMC refused Get SEL Info or reports none
-
info
Returns the Get SEL Info reply of the protocol core, for everything else.- Returns:
- the reply, empty when the BMC refused the command
-
toString
- Overrides:
toStringin classAbstractCollection<SelEntry>
-