Class LogstreamBuilderGmt<T extends LogstreamBuilderGmt<T>>

java.lang.Object
com.blackhillsoftware.smf.SmfRecordReaderBuilder
com.blackhillsoftware.smf.readerbuilder.LogstreamBuilderGmt<T>

public class LogstreamBuilderGmt<T extends LogstreamBuilderGmt<T>> extends SmfRecordReaderBuilder
Intermediate class generated using the builder pattern to read from a logstream and specifying times in GMT - see LogstreamBuilder
  • Method Details

    • from

      public LogstreamBuilderGmt<T> from(ZonedDateTime zonedDateTime)
      Specify the start time for the first logstream block to be processed using a ZonedDateTime. The Zone does not need to be UTC - the value will be converted to UTC before it is used with the LOGR subsystem.
      Parameters:
      zonedDateTime - the start date and time
      Returns:
      this LogstreamBuilderGmt to allow method chaining
    • to

      public LogstreamBuilderGmt<T> to(ZonedDateTime zonedDateTime)
      Specify the end time for the last logstream block to be processed using a ZonedDateTime. The Zone does not need to be UTC - the value will be converted to UTC before it is used with the LOGR subsystem.
      Parameters:
      zonedDateTime - the end date and time
      Returns:
      this LogstreamBuilderGmt to allow method chaining
    • sid

      public LogstreamBuilderGmt<T> sid(String sid)
      Specify the system identifier for the SMF logstream system exit
      Parameters:
      sid - a System ID
      Returns:
      this LogstreamReaderBuilderCommon to allow method chaining
    • smep

      public LogstreamBuilderGmt<T> smep(Duration smep)
      Specify the smart end point used by the SMF logstream system exit
      Parameters:
      smep - the smart end point duration (less than or equal to 2 hours)
      Returns:
      this SmfRecordReaderBuilder to allow method chaining
    • include

      public LogstreamBuilderGmt<T> include(int smfType)
      Description copied from class: SmfRecordReaderBuilder
      Include a SMF record type - see SmfRecordReader.include(int)
      Specified by:
      include in class SmfRecordReaderBuilder
      Parameters:
      smfType - the SMF type to include
      Returns:
      this SmfRecordReaderBuilder to allow method chaining
    • include

      public LogstreamBuilderGmt<T> include(int smfType, int subtype)
      Description copied from class: SmfRecordReaderBuilder
      Include a SMF record type and subtype - see SmfRecordReader.include(int, int)
      Specified by:
      include in class SmfRecordReaderBuilder
      Parameters:
      smfType - the SMF type to include
      subtype - the SMF subtype to include
      Returns:
      this SmfRecordReaderBuilder to allow method chaining
    • build

      public SmfRecordReader build() throws IOException
      Description copied from class: SmfRecordReaderBuilder
      Build the SmfRecordReader. Consider calling this method in a try-with-resources statement to ensure the SmfRecordReader is closed.
      Specified by:
      build in class SmfRecordReaderBuilder
      Returns:
      the resulting SmfRecordReader
      Throws:
      IOException - if an I/O error occurs