public class RotateLogIfSize
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 |
maxSizeKB |
boolean |
otherLogs |
boolean |
stdLog |
Constructor and Description |
---|
RotateLogIfSize() |
RotateLogIfSize(RotateLogIfSize o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this RotateLogIfSize.
|
static RotateLogIfSize |
fromString(java.lang.String s)
String representation of this RotateLogIfSize.
|
long |
getMaxSizeKB()
-
|
boolean |
isOtherLogs()
-
|
boolean |
isStdLog()
-
|
RotateLogIfSize |
makeCopy()
Creates and returns a deep copy of this RotateLogIfSize.
|
static RotateLogIfSize |
readFrom(java.io.InputStream is)
Read this RotateLogIfSize from an XML fragment.
|
void |
setMaxSizeKB(long maxSizeKB)
-
|
void |
setOtherLogs(boolean otherLogs)
-
|
void |
setStdLog(boolean stdLog)
-
|
java.lang.String |
toString()
String representation of this RotateLogIfSize.
|
RotateLogIfSize |
withMaxSizeKB(long maxSizeKB) |
RotateLogIfSize |
withMaxSizeKB(java.lang.Long maxSizeKB) |
RotateLogIfSize |
withOtherLogs(boolean otherLogs) |
RotateLogIfSize |
withOtherLogs(java.lang.Boolean otherLogs) |
RotateLogIfSize |
withStdLog(boolean stdLog) |
RotateLogIfSize |
withStdLog(java.lang.Boolean stdLog) |
void |
writeTo(java.io.OutputStream os)
Write this RotateLogIfSize 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 long maxSizeKB
public RotateLogIfSize()
public RotateLogIfSize(RotateLogIfSize o)
public void setStdLog(boolean stdLog)
public boolean isStdLog()
public RotateLogIfSize withStdLog(boolean stdLog)
public RotateLogIfSize withStdLog(java.lang.Boolean stdLog)
public void setOtherLogs(boolean otherLogs)
public boolean isOtherLogs()
public RotateLogIfSize withOtherLogs(boolean otherLogs)
public RotateLogIfSize withOtherLogs(java.lang.Boolean otherLogs)
public void setMaxSizeKB(long maxSizeKB)
public long getMaxSizeKB()
public RotateLogIfSize withMaxSizeKB(long maxSizeKB)
public RotateLogIfSize withMaxSizeKB(java.lang.Long maxSizeKB)
public RotateLogIfSize makeCopy()
public static RotateLogIfSize 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 RotateLogIfSize 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.