|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SegmentationConfig.SegmentationStrategy>
com.genesyslab.platform.apptemplate.configuration.log.SegmentationConfig.SegmentationStrategy
public static enum SegmentationConfig.SegmentationStrategy
Describes type of segmentation.
Enum Constant Summary | |
---|---|
OFF
No segmentation of log file. |
|
SIZE_KB
The log file is divided into segments by size, which length (in KB) is set by SegmentationConfig.getSegment() . |
|
SIZE_MB
The log file is divided into segments by size, which length (in MB) is set by SegmentationConfig.getSegment() . |
|
TIME_BASED
The log file is divided into segments by time, the old segment is closed and new is started each SegmentationConfig.getSegment() hours. |
Method Summary | |
---|---|
static SegmentationConfig.SegmentationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SegmentationConfig.SegmentationStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SegmentationConfig.SegmentationStrategy OFF
public static final SegmentationConfig.SegmentationStrategy SIZE_KB
SegmentationConfig.getSegment()
.
public static final SegmentationConfig.SegmentationStrategy SIZE_MB
SegmentationConfig.getSegment()
.
public static final SegmentationConfig.SegmentationStrategy TIME_BASED
SegmentationConfig.getSegment()
hours.
Method Detail |
---|
public static SegmentationConfig.SegmentationStrategy[] values()
for (SegmentationConfig.SegmentationStrategy c : SegmentationConfig.SegmentationStrategy.values()) System.out.println(c);
public static SegmentationConfig.SegmentationStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |