|
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<ExpirationConfig.ExpirationStrategy>
com.genesyslab.platform.apptemplate.configuration.log.ExpirationConfig.ExpirationStrategy
public static enum ExpirationConfig.ExpirationStrategy
Describes the possible type of log file expiration strategy.
Enum Constant Summary | |
---|---|
NUMBER_OF_FILES
The expiration is based on the number of files with the same log name in the folder. |
|
OFF
The expiration is turned off. |
|
TIME_BASED
The expiration is based on the file age. |
Method Summary | |
---|---|
static ExpirationConfig.ExpirationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ExpirationConfig.ExpirationStrategy[] |
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 ExpirationConfig.ExpirationStrategy OFF
ExpirationConfig.getExpire()
property is ignored.
public static final ExpirationConfig.ExpirationStrategy NUMBER_OF_FILES
"<logfilename>.*.log"
is counted.ExpirationConfig.getExpire()
,
the oldest files will be deleted. The number of deleted file is equal
to 'currentFilesNumber - maxAllowedFilesNumber'.
public static final ExpirationConfig.ExpirationStrategy TIME_BASED
ExpirationConfig.getExpire()
days are deleted.
Method Detail |
---|
public static ExpirationConfig.ExpirationStrategy[] values()
for (ExpirationConfig.ExpirationStrategy c : ExpirationConfig.ExpirationStrategy.values()) System.out.println(c);
public static ExpirationConfig.ExpirationStrategy 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 |