public class RotateLogIfSize
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 |
maxSizeKB |
java.lang.String |
process |
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.
|
java.lang.String |
getHost()
Rotate log files for the specified host.
If null, it rotates log files on every cluster host. |
java.lang.String |
getInstall()
Rotates the log of the specified install.
|
int |
getMaxSizeKB()
Size in KiloBytes to trigger logs rotation
|
java.lang.String |
getProcess()
Rotates log files for the specified process.
If null, it rotates log files for every process. |
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 |
setHost(java.lang.String host)
Rotate log files for the specified host.
If null, it rotates log files on every cluster host. |
void |
setInstall(java.lang.String install)
Rotates the log of the specified install.
|
void |
setMaxSizeKB(int maxSizeKB)
Size in KiloBytes to trigger logs rotation
|
void |
setProcess(java.lang.String process)
Rotates log files for the specified process.
If null, it rotates log files for every process. |
java.lang.String |
toString()
String representation of this RotateLogIfSize.
|
RotateLogIfSize |
withHost(java.lang.String host) |
RotateLogIfSize |
withInstall(java.lang.String install) |
RotateLogIfSize |
withMaxSizeKB(int maxSizeKB) |
RotateLogIfSize |
withMaxSizeKB(java.lang.Integer maxSizeKB) |
RotateLogIfSize |
withProcess(java.lang.String process) |
void |
writeTo(java.io.OutputStream os)
Write this RotateLogIfSize as an XML fragment
|
public java.lang.String host
public java.lang.String install
public java.lang.String process
public int maxSizeKB
public RotateLogIfSize()
public RotateLogIfSize(RotateLogIfSize o)
public void setHost(java.lang.String host)
public java.lang.String getHost()
public RotateLogIfSize withHost(java.lang.String host)
public void setInstall(java.lang.String install)
public java.lang.String getInstall()
public RotateLogIfSize withInstall(java.lang.String install)
public void setProcess(java.lang.String process)
public java.lang.String getProcess()
public RotateLogIfSize withProcess(java.lang.String process)
public void setMaxSizeKB(int maxSizeKB)
public int getMaxSizeKB()
public RotateLogIfSize withMaxSizeKB(int maxSizeKB)
public RotateLogIfSize withMaxSizeKB(java.lang.Integer 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.