public class PurgeLog
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_OTHER_LOGS |
static boolean |
DEFAULT_STD_LOG |
long |
maxSizeToKeepKB |
int |
nbDaysToKeep |
boolean |
otherLogs |
boolean |
stdLog |
Constructor and Description |
---|
PurgeLog() |
PurgeLog(PurgeLog o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PurgeLog.
|
static PurgeLog |
fromString(java.lang.String s)
String representation of this PurgeLog.
|
long |
getMaxSizeToKeepKB()
-
|
int |
getNbDaysToKeep()
-
|
boolean |
isOtherLogs()
-
|
boolean |
isStdLog()
-
|
PurgeLog |
makeCopy()
Creates and returns a deep copy of this PurgeLog.
|
static PurgeLog |
readFrom(java.io.InputStream is)
Read this PurgeLog from an XML fragment.
|
void |
setMaxSizeToKeepKB(long maxSizeToKeepKB)
-
|
void |
setNbDaysToKeep(int nbDaysToKeep)
-
|
void |
setOtherLogs(boolean otherLogs)
-
|
void |
setStdLog(boolean stdLog)
-
|
java.lang.String |
toString()
String representation of this PurgeLog.
|
PurgeLog |
withMaxSizeToKeepKB(long maxSizeToKeepKB) |
PurgeLog |
withMaxSizeToKeepKB(java.lang.Long maxSizeToKeepKB) |
PurgeLog |
withNbDaysToKeep(int nbDaysToKeep) |
PurgeLog |
withNbDaysToKeep(java.lang.Integer nbDaysToKeep) |
PurgeLog |
withOtherLogs(boolean otherLogs) |
PurgeLog |
withOtherLogs(java.lang.Boolean otherLogs) |
PurgeLog |
withStdLog(boolean stdLog) |
PurgeLog |
withStdLog(java.lang.Boolean stdLog) |
void |
writeTo(java.io.OutputStream os)
Write this PurgeLog as an XML fragment
|
public boolean stdLog
public static final boolean DEFAULT_STD_LOG
public boolean otherLogs
public static final boolean DEFAULT_OTHER_LOGS
public int nbDaysToKeep
public long maxSizeToKeepKB
public PurgeLog()
public PurgeLog(PurgeLog o)
public void setStdLog(boolean stdLog)
public boolean isStdLog()
public PurgeLog withStdLog(boolean stdLog)
public PurgeLog withStdLog(java.lang.Boolean stdLog)
public void setOtherLogs(boolean otherLogs)
public boolean isOtherLogs()
public PurgeLog withOtherLogs(boolean otherLogs)
public PurgeLog withOtherLogs(java.lang.Boolean otherLogs)
public void setNbDaysToKeep(int nbDaysToKeep)
public int getNbDaysToKeep()
public PurgeLog withNbDaysToKeep(int nbDaysToKeep)
public PurgeLog withNbDaysToKeep(java.lang.Integer nbDaysToKeep)
public void setMaxSizeToKeepKB(long maxSizeToKeepKB)
public long getMaxSizeToKeepKB()
public PurgeLog withMaxSizeToKeepKB(long maxSizeToKeepKB)
public PurgeLog withMaxSizeToKeepKB(java.lang.Long maxSizeToKeepKB)
public PurgeLog makeCopy()
public static PurgeLog readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static PurgeLog fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.