|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.configuration.log.SegmentationConfig
public final class SegmentationConfig
Describes the rule of segmentation of log files.
LogOptionsDescriptions.SEGMENT_OPT
,
Serialized FormNested Class Summary | |
---|---|
static class |
SegmentationConfig.SegmentationStrategy
Describes type of segmentation. |
Field Summary | |
---|---|
static SegmentationConfig |
DEFAULT_SEGMENTATION
|
static SegmentationConfig |
NO_SEGMENTATION
|
Constructor Summary | |
---|---|
SegmentationConfig(SegmentationConfig.SegmentationStrategy theStrategy,
int theSegment)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getSegment()
Numeric value which meaning depends on the value of getStrategy() . |
SegmentationConfig.SegmentationStrategy |
getStrategy()
Describes the type of segmentation used. |
int |
hashCode()
|
static SegmentationConfig |
parse(java.lang.String optionVal,
ILogger logger)
Parses string option value in format of the segmentation option LogOptionsDescriptions.SEGMENT_OPT . |
java.lang.String |
toString()
Returns readable string representation of the Segmentation option value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SegmentationConfig NO_SEGMENTATION
public static final SegmentationConfig DEFAULT_SEGMENTATION
Constructor Detail |
---|
public SegmentationConfig(SegmentationConfig.SegmentationStrategy theStrategy, int theSegment)
theStrategy
- the value for getStrategy()
.theSegment
- the value for getSegment()
.Method Detail |
---|
public SegmentationConfig.SegmentationStrategy getStrategy()
public int getSegment()
getStrategy()
.
public static SegmentationConfig parse(java.lang.String optionVal, ILogger logger)
LogOptionsDescriptions.SEGMENT_OPT
.
optionVal
- the option value for parsing.logger
- optional "status" logger for parsing errors printing.
LogOptionsDescriptions.SEGMENT_OPT
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |