public interface LogParser extends AutoCloseable
SingleLineParser to
parse each line, and adds extracted ResourceSkylines to the
SkylineStore.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init(org.apache.hadoop.conf.Configuration config,
HistorySkylineStore skylineStore)
Initializing the LogParser, including loading solver parameters from
configuration file.
|
void |
parseStream(InputStream logs)
Parses each line in the log stream, and adds extracted
ResourceSkylines to the SkylineStore. |
void init(org.apache.hadoop.conf.Configuration config,
HistorySkylineStore skylineStore)
throws ResourceEstimatorException
config - Configuration for the LogParser.skylineStore - the HistorySkylineStore which stores recurring
pipeline's ResourceSkylines.ResourceEstimatorException - if initialization of a
SingleLineParser fails.void parseStream(InputStream logs) throws SkylineStoreException, IOException
ResourceSkylines to the SkylineStore.logs - the stream of input logs.SkylineStoreException - if it fails to addHistory extracted
ResourceSkylines to the SkylineStore.IOException - if it fails to read from the InputStream.void close()
close in interface AutoCloseableCopyright © 2019 Apache Software Foundation. All Rights Reserved.