public class GlobalLoggerConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE_GLOBAL_LOG_ENTRY_STORE |
static int |
DEFAULT_MAX_SIZE |
boolean |
enableGlobalLogEntryStore |
int |
maxSize |
Constructor and Description |
---|
GlobalLoggerConfig() |
GlobalLoggerConfig(GlobalLoggerConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this GlobalLoggerConfig.
|
static GlobalLoggerConfig |
fromString(java.lang.String s)
String representation of this GlobalLoggerConfig.
|
int |
getMaxSize()
Max size of the RAM buffer that stores latest messages.
|
boolean |
isEnableGlobalLogEntryStore()
Keeps all logs (in these case, an additional structure is created on
disk and GetGlobalLogEntryList can be called). |
GlobalLoggerConfig |
makeCopy()
Creates and returns a deep copy of this GlobalLoggerConfig.
|
static GlobalLoggerConfig |
readFrom(java.io.InputStream is)
Read this GlobalLoggerConfig from an XML fragment.
|
void |
setEnableGlobalLogEntryStore(boolean enableGlobalLogEntryStore)
Keeps all logs (in these case, an additional structure is created on
disk and GetGlobalLogEntryList can be called). |
void |
setMaxSize(int maxSize)
Max size of the RAM buffer that stores latest messages.
|
java.lang.String |
toString()
String representation of this GlobalLoggerConfig.
|
GlobalLoggerConfig |
withEnableGlobalLogEntryStore(boolean enableGlobalLogEntryStore) |
GlobalLoggerConfig |
withEnableGlobalLogEntryStore(java.lang.Boolean enableGlobalLogEntryStore) |
GlobalLoggerConfig |
withMaxSize(int maxSize) |
GlobalLoggerConfig |
withMaxSize(java.lang.Integer maxSize) |
void |
writeTo(java.io.OutputStream os)
Write this GlobalLoggerConfig as an XML fragment
|
public int maxSize
public static final int DEFAULT_MAX_SIZE
public boolean enableGlobalLogEntryStore
public static final boolean DEFAULT_ENABLE_GLOBAL_LOG_ENTRY_STORE
public GlobalLoggerConfig()
public GlobalLoggerConfig(GlobalLoggerConfig o)
public void setMaxSize(int maxSize)
public int getMaxSize()
public GlobalLoggerConfig withMaxSize(int maxSize)
public GlobalLoggerConfig withMaxSize(java.lang.Integer maxSize)
public void setEnableGlobalLogEntryStore(boolean enableGlobalLogEntryStore)
public boolean isEnableGlobalLogEntryStore()
public GlobalLoggerConfig withEnableGlobalLogEntryStore(boolean enableGlobalLogEntryStore)
public GlobalLoggerConfig withEnableGlobalLogEntryStore(java.lang.Boolean enableGlobalLogEntryStore)
public GlobalLoggerConfig makeCopy()
public static GlobalLoggerConfig 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 GlobalLoggerConfig 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.