public class PurgeLog
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
host |
java.lang.String |
install |
int |
maxAgeDays |
int |
maxSizeKB |
java.lang.String |
process |
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.
|
java.lang.String |
getHost()
Purges log files for the specified host.
If null, it rotates log files on every cluster host. |
java.lang.String |
getInstall()
Instance name.
|
int |
getMaxAgeDays()
Max age of logs in days before purge.
|
int |
getMaxSizeKB()
Max cumulated size of log files before purge.
|
java.lang.String |
getProcess()
Purges log files for the specified process.
If null, it rotates log files for every process. |
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 |
setHost(java.lang.String host)
Purges log files for the specified host.
If null, it rotates log files on every cluster host. |
void |
setInstall(java.lang.String install)
Instance name.
|
void |
setMaxAgeDays(int maxAgeDays)
Max age of logs in days before purge.
|
void |
setMaxSizeKB(int maxSizeKB)
Max cumulated size of log files before purge.
|
void |
setProcess(java.lang.String process)
Purges log files for the specified process.
If null, it rotates log files for every process. |
java.lang.String |
toString()
String representation of this PurgeLog.
|
PurgeLog |
withHost(java.lang.String host) |
PurgeLog |
withInstall(java.lang.String install) |
PurgeLog |
withMaxAgeDays(int maxAgeDays) |
PurgeLog |
withMaxAgeDays(java.lang.Integer maxAgeDays) |
PurgeLog |
withMaxSizeKB(int maxSizeKB) |
PurgeLog |
withMaxSizeKB(java.lang.Integer maxSizeKB) |
PurgeLog |
withProcess(java.lang.String process) |
void |
writeTo(java.io.OutputStream os)
Write this PurgeLog as an XML fragment
|
public java.lang.String host
public java.lang.String install
public java.lang.String process
public int maxSizeKB
public int maxAgeDays
public PurgeLog()
public PurgeLog(PurgeLog o)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public PurgeLog withHost(java.lang.String host)
public void setInstall(java.lang.String install)
public java.lang.String getInstall()
public PurgeLog withInstall(java.lang.String install)
public void setProcess(java.lang.String process)
public java.lang.String getProcess()
public PurgeLog withProcess(java.lang.String process)
public void setMaxSizeKB(int maxSizeKB)
public int getMaxSizeKB()
public PurgeLog withMaxSizeKB(int maxSizeKB)
public PurgeLog withMaxSizeKB(java.lang.Integer maxSizeKB)
public void setMaxAgeDays(int maxAgeDays)
public int getMaxAgeDays()
public PurgeLog withMaxAgeDays(int maxAgeDays)
public PurgeLog withMaxAgeDays(java.lang.Integer maxAgeDays)
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.