| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | HistogramLogScanner.EventHandler
Handles log events, return true to stop processing. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HistogramLogScanner. | |
| protected final Scanner |
| Access | Constructor and Description |
|---|---|
| public | HistogramLogScanner(final String
The name of the file to read from inputFileName)Constructs a new HistogramLogReader that produces intervals read from the specified file name. |
| public | HistogramLogScanner(final InputStream
The InputStream to read from inputStream)Constructs a new HistogramLogReader that produces intervals read from the specified InputStream. |
| public | HistogramLogScanner(final File
The File to read from inputFile)Constructs a new HistogramLogReader that produces intervals read from the specified file. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if additional intervals may exist in the logIndicates whether or not additional intervals may exist in the log |
| private void | |
| public void |
| lazyReader | back to summary |
|---|---|
| private final HistogramLogScanner. | |
| scanner | back to summary |
|---|---|
| protected final Scanner scanner | |
| HistogramLogScanner | back to summary |
|---|---|
| public HistogramLogScanner(final String inputFileName) throws FileNotFoundException Constructs a new HistogramLogReader that produces intervals read from the specified file name.
| |
| HistogramLogScanner | back to summary |
|---|---|
| public HistogramLogScanner(final InputStream inputStream) Constructs a new HistogramLogReader that produces intervals read from the specified InputStream. Note that
log readers constructed through this constructor do not assume ownership of stream and will not close it on
| |
| HistogramLogScanner | back to summary |
|---|---|
| public HistogramLogScanner(final File inputFile) throws FileNotFoundException Constructs a new HistogramLogReader that produces intervals read from the specified file.
| |
| HistogramLogScanner | back to summary |
|---|---|
| private HistogramLogScanner(Scanner scanner) | |
| close | back to summary |
|---|---|
| public void close() Implements java. Close underlying scanner.
| |
| hasNextLine | back to summary |
|---|---|
| public boolean hasNextLine() Indicates whether or not additional intervals may exist in the log
| |
| initScanner | back to summary |
|---|---|
| private void initScanner() | |
| process | back to summary |
|---|---|
| public void process(HistogramLogScanner. | |
| Modifier and Type | Method and Description |
|---|---|
| public EncodableHistogram |
| read | back to summary |
|---|---|
| public EncodableHistogram read() throws DataFormatException | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true to stop processing, false to continue.histogram tag or null if none exist tag, double logged timestamp timestamp, double logged interval length length, HistogramLogScanner.to be called if the histogram needs to be deserialized, given the tag/timestamp etc. lazyReaderA lazy reader is provided to allow fast skipping of bulk of work where tag or timestamp are to be used as
a basis for filtering the |
| public boolean |
| onBaseTime | back to summary |
|---|---|
| public boolean onBaseTime(double secondsSinceEpoch) | |
| onComment | back to summary |
|---|---|
| public boolean onComment(String comment) | |
| onException | back to summary |
|---|---|
| public boolean onException(Throwable t) | |
| onHistogram | back to summary |
|---|---|
| public boolean onHistogram(String tag, double timestamp, double length, HistogramLogScanner. A lazy reader is provided to allow fast skipping of bulk of work where tag or timestamp are to be used as
a basis for filtering the
| |
| onStartTime | back to summary |
|---|---|
| public boolean onStartTime(double secondsSinceEpoch) | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Scanner |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public EncodableHistogram |
| gotIt | back to summary |
|---|---|
| private boolean gotIt | |
| scanner | back to summary |
|---|---|
| private final Scanner scanner | |
| LazyHistogramReader | back to summary |
|---|---|
| private LazyHistogramReader(Scanner scanner) | |
| allowGet | back to summary |
|---|---|
| private void allowGet() | |
| read | back to summary |
|---|---|
| public EncodableHistogram read() throws DataFormatException Implements org.
| |