Class LogstreamBuilderGmt<T extends LogstreamBuilderGmt<T>>
java.lang.Object
com.blackhillsoftware.smf.SmfRecordReaderBuilder
com.blackhillsoftware.smf.readerbuilder.LogstreamBuilderGmt<T>
Intermediate class generated using the builder pattern to read from a
logstream and specifying times in GMT - see
LogstreamBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theSmfRecordReader
.from
(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
(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 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
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
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
-