Class SelEntryList

All Implemented Interfaces:
Iterable<SelEntry>, Collection<SelEntry>, List<SelEntry>

public final class SelEntryList extends AbstractList<SelEntry>
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 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

      public SelEntry get(int index)
      Specified by:
      get in interface List<SelEntry>
      Specified by:
      get in class AbstractList<SelEntry>
    • size

      public int size()
      Specified by:
      size in interface Collection<SelEntry>
      Specified by:
      size in interface List<SelEntry>
      Specified by:
      size in class AbstractCollection<SelEntry>
    • totalEntries

      public OptionalInt totalEntries()
      Returns how many entries the whole log holds, which is more than size() after SelRequest.since(int).
      Returns:
      the number of entries of the log, empty when the BMC refused Get SEL Info
    • lastAddition

      public Optional<Instant> 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

      public Optional<Instant> 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 its ID names.
      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

      public String toString()
      Overrides:
      toString in class AbstractCollection<SelEntry>