Class LogstreamBuilder<T extends LogstreamBuilder<T>>
java.lang.Object
com.blackhillsoftware.smf.SmfRecordReaderBuilder
com.blackhillsoftware.smf.readerbuilder.LogstreamBuilder<T>
Build a
SmfRecordReader
to read from a logstream.
See IBM documentation "JCL for the LOGR Subsystem" for a description of how the LOGR subsystem processes the start and end times.
Obtain the LogstreamReaderBuilder from
SmfRecordReader.logstreamBuilder(String)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theSmfRecordReader
.from
(LocalDateTime localDateTime) Specify the start time for the first logstream block to be processed using a LocalDateTimeSpecify the start time for the first logstream block to be processed using a LocalTimefrom
(ZonedDateTime zonedDateTime) Specify the start time for the first logstream block to be processed using a ZonedDateTime.include
(int smfType) Include a SMF record type - seeSmfRecordReader.include(int)
include
(int smfType, int subtype) Include a SMF record type and subtype - seeSmfRecordReader.include(int, int)
Specify the system identifier for the SMF logstream system exitSpecify the smart end point used by the SMF logstream system exitto
(LocalDateTime localDateTime) Specify the end time for the last logstream block to be processed using a LocalDateTimeSpecify the end time for the last logstream block to be processed using a LocalTimeto
(ZonedDateTime zonedDateTime) Specify the end time for the last logstream block to be processed using a ZonedDateTime.
-
Method Details
-
from
Specify the start time for the first logstream block to be processed using a LocalTime- Parameters:
localTime
-- Returns:
- a
LogstreamBuilderLocal
to allow method chaining
-
from
Specify the start time for the first logstream block to be processed using a LocalDateTime- Parameters:
localDateTime
- the start date and time- Returns:
- a
LogstreamBuilderLocal
to allow method chaining
-
to
Specify the end time for the last logstream block to be processed using a LocalTime- Parameters:
localTime
-- Returns:
- a
LogstreamBuilderLocal
to allow method chaining
-
to
Specify the end time for the last logstream block to be processed using a LocalDateTime- Parameters:
localDateTime
- the end date and time- Returns:
- a
LogstreamBuilderLocal
to allow method chaining
-
from
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:
- a
LogstreamBuilderGmt
to allow method chaining
-
to
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:
- a
LogstreamBuilderGmt
to allow method chaining
-
sid
Specify the system identifier for the SMF logstream system exit- Parameters:
sid
- a System ID- Returns:
- this LogstreamReaderBuilderCommon to allow method chaining
-
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
Description copied from class:SmfRecordReaderBuilder
Include a SMF record type - seeSmfRecordReader.include(int)
- Specified by:
include
in classSmfRecordReaderBuilder
- Parameters:
smfType
- the SMF type to include- Returns:
- this SmfRecordReaderBuilder to allow method chaining
-
include
Description copied from class:SmfRecordReaderBuilder
Include a SMF record type and subtype - seeSmfRecordReader.include(int, int)
- Specified by:
include
in classSmfRecordReaderBuilder
- Parameters:
smfType
- the SMF type to includesubtype
- the SMF subtype to include- Returns:
- this SmfRecordReaderBuilder to allow method chaining
-
build
Description copied from class:SmfRecordReaderBuilder
Build theSmfRecordReader
. Consider calling this method in a try-with-resources statement to ensure the SmfRecordReader is closed.- Specified by:
build
in classSmfRecordReaderBuilder
- Returns:
- the resulting SmfRecordReader
- Throws:
IOException
- if an I/O error occurs
-