|
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.ExpirationConfig
public final class ExpirationConfig
This class is used for configuring the expiration of log files (and log segments).
LogOptionsDescriptions.EXPIRE_OPT
,
Serialized FormNested Class Summary | |
---|---|
static class |
ExpirationConfig.ExpirationStrategy
Describes the possible type of log file expiration strategy. |
Field Summary | |
---|---|
static ExpirationConfig |
DEFAULT_EXPIRATION
|
static ExpirationConfig |
NO_EXPIRATION
|
Constructor Summary | |
---|---|
ExpirationConfig(ExpirationConfig.ExpirationStrategy theStrategy,
int theExpire)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getExpire()
The meaning of this property depends on the value of getStrategy() . |
ExpirationConfig.ExpirationStrategy |
getStrategy()
The ExpirationConfig.ExpirationStrategy which describes the strategy of expiration. |
int |
hashCode()
|
static ExpirationConfig |
parse(java.lang.String optionVal,
ILogger logger)
Parses string option value in format of the expiration option LogOptionsDescriptions.EXPIRE_OPT . |
java.lang.String |
toString()
Returns readable string representation of the Expiration option value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ExpirationConfig NO_EXPIRATION
public static final ExpirationConfig DEFAULT_EXPIRATION
Constructor Detail |
---|
public ExpirationConfig(ExpirationConfig.ExpirationStrategy theStrategy, int theExpire)
theStrategy
- the expiration strategy.theExpire
- the expiration value.Method Detail |
---|
public ExpirationConfig.ExpirationStrategy getStrategy()
ExpirationConfig.ExpirationStrategy
which describes the strategy of expiration.
public int getExpire()
getStrategy()
. See ExpirationConfig.ExpirationStrategy
for more details.
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
public static ExpirationConfig parse(java.lang.String optionVal, ILogger logger)
LogOptionsDescriptions.EXPIRE_OPT
.
optionVal
- the option value for parsing.logger
- optional "status" logger for parsing errors printing.
LogOptionsDescriptions.EXPIRE_OPT
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |