public class StorageConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CACHED_DOCUMENTS |
int |
maxCachedDocuments |
Constructor and Description |
---|
StorageConfig() |
StorageConfig(StorageConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this StorageConfig.
|
static StorageConfig |
fromString(java.lang.String s)
String representation of this StorageConfig.
|
int |
getMaxCachedDocuments()
The maximum number of documents cached.
|
StorageConfig |
makeCopy()
Creates and returns a deep copy of this StorageConfig.
|
static StorageConfig |
readFrom(java.io.InputStream is)
Read this StorageConfig from an XML fragment.
|
void |
setMaxCachedDocuments(int maxCachedDocuments)
The maximum number of documents cached.
|
java.lang.String |
toString()
String representation of this StorageConfig.
|
StorageConfig |
withMaxCachedDocuments(int maxCachedDocuments) |
StorageConfig |
withMaxCachedDocuments(java.lang.Integer maxCachedDocuments) |
void |
writeTo(java.io.OutputStream os)
Write this StorageConfig as an XML fragment
|
public int maxCachedDocuments
public static final int DEFAULT_MAX_CACHED_DOCUMENTS
public StorageConfig()
public StorageConfig(StorageConfig o)
public void setMaxCachedDocuments(int maxCachedDocuments)
public int getMaxCachedDocuments()
public StorageConfig withMaxCachedDocuments(int maxCachedDocuments)
public StorageConfig withMaxCachedDocuments(java.lang.Integer maxCachedDocuments)
public StorageConfig makeCopy()
public static StorageConfig 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 StorageConfig 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.