public class GlassfishLogFormat extends AbstractRegexLogFormat
AbstractRegexLogFormat.RegexParser| Modifier and Type | Field and Description |
|---|---|
protected RecordTextSchema<?> |
schema |
formatPattern, logType| Constructor and Description |
|---|
GlassfishLogFormat()
Create a log format for accessing Glasssfish log data.
|
GlassfishLogFormat(String formatPattern)
Create a log format for accessing Glassfish log data.
|
| Modifier and Type | Method and Description |
|---|---|
FormatAnalyzer.FormatAnalysis |
analyzeFormat(Reader input)
Creates the analysis object based on the provided input.
|
DataFormat.DataParser |
createParser(ParsingOptions options,
CharsetEncoding charEncoding,
String newline) |
RecordTextSchema<?> |
getSchema()
Gets the record schema of the source.
|
RecordTokenType |
getType()
Gets the record type associated with the format.
|
boolean |
isSplittable()
Indicates if the format supports parsing of subsections
of a file.
|
protected void |
refreshSchema()
Refresh and recalculate the schema.
|
LogFormat |
setAnalysis(FormatAnalyzer.FormatAnalysis analysis)
Sets the analysis object to use to determine meta-data.
|
getFormatPattern, getLogType, setFormatPatternprotected RecordTextSchema<?> schema
public GlassfishLogFormat()
public GlassfishLogFormat(String formatPattern)
formatPattern - the timestamp format to usepublic RecordTokenType getType()
LogFormatFor many formats, this may be derived from a schema object describing the format layout.
public RecordTextSchema<?> getSchema()
AbstractRegexLogFormatgetSchema in class AbstractRegexLogFormatprotected void refreshSchema()
AbstractRegexLogFormatrefreshSchema in class AbstractRegexLogFormatpublic boolean isSplittable()
LogFormat
A format should only return true if it can,
at least in some situations, support this sort of parsing.
If a format requires reading the entire file, it
must return false.
If a format is not splittable, a file in the format cannot be parsed in parallel; however, individual files can still be parsed independently in parallel, as when reading the contents of a directory or using a file globbing pattern.
isSplittable in interface LogFormatisSplittable in class AbstractRegexLogFormattrue if the format supports parsing
only a portion of the file, false otherwisepublic FormatAnalyzer.FormatAnalysis analyzeFormat(Reader input) throws IOException, ParseException
LogFormatanalyzeFormat in interface LogFormatanalyzeFormat in class AbstractRegexLogFormatinput - the input source to analyzeIOExceptionParseExceptionpublic LogFormat setAnalysis(FormatAnalyzer.FormatAnalysis analysis)
LogFormatsetAnalysis in interface LogFormatsetAnalysis in class AbstractRegexLogFormatanalysis - the analysis objectpublic DataFormat.DataParser createParser(ParsingOptions options, CharsetEncoding charEncoding, String newline)
Copyright © 2024 Actian Corporation. All rights reserved.