java.io.Serializable
public final class ExpirationConfig
extends java.lang.Object
implements java.io.Serializable
LogOptionsDescriptions.EXPIRE_OPT
,
Serialized FormModifier and Type | Class | Description |
---|---|---|
static class |
ExpirationConfig.ExpirationStrategy |
Describes the possible type of log file expiration strategy.
|
Modifier and Type | Field | Description |
---|---|---|
static ExpirationConfig |
DEFAULT_EXPIRATION |
|
static ExpirationConfig |
NO_EXPIRATION |
Constructor | Description |
---|---|
ExpirationConfig(ExpirationConfig.ExpirationStrategy theStrategy,
int theExpire) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final ExpirationConfig NO_EXPIRATION
public static final ExpirationConfig DEFAULT_EXPIRATION
public ExpirationConfig(ExpirationConfig.ExpirationStrategy theStrategy, int theExpire)
theStrategy
- the expiration strategy.theExpire
- the expiration value.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
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.