Class LogstreamBuilderLocal<T extends LogstreamBuilderLocal<T>>
java.lang.Object
com.blackhillsoftware.smf.SmfRecordReaderBuilder
com.blackhillsoftware.smf.readerbuilder.LogstreamBuilderLocal<T>
public class LogstreamBuilderLocal<T extends LogstreamBuilderLocal<T>>
extends SmfRecordReaderBuilder
Intermediate class generated using the builder pattern to read from a
logstream and specifying local times - see
LogstreamBuilder
-
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 LocalTimeinclude
(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 LocalTime
-
Method Details
-
from
Specify the start time for the first logstream block to be processed using a LocalTime- Parameters:
localTime
-- Returns:
- this
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:
- this
LogstreamBuilderLocal
to allow method chaining
-
to
Specify the end time for the last logstream block to be processed using a LocalTime- Parameters:
localTime
-- Returns:
- this
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:
- this
LogstreamBuilderLocal
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
-