public class TransientStoreConfig extends Object implements Descriptor
XMap
descriptor for representing the Configuration of a TransientStore
Modifier and Type | Field and Description |
---|---|
protected Integer |
absoluteMaxSizeMB |
static int |
DEFAULT_ABSOLUTE_MAX_SIZE_MB |
static int |
DEFAULT_FIRST_LEVEL_TTL |
static int |
DEFAULT_SECOND_LEVEL_TTL |
static int |
DEFAULT_TARGET_MAX_SIZE_MB |
protected Integer |
firstLevelTTL |
Class<? extends TransientStoreProvider> |
implClass |
String |
name |
protected String |
path |
protected Map<String,String> |
properties |
protected Integer |
secondLevelTTL |
protected Integer |
targetMaxSizeMB |
UNIQUE_DESCRIPTOR_ID
Constructor and Description |
---|
TransientStoreConfig() |
TransientStoreConfig(String name) |
TransientStoreConfig(TransientStoreConfig other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static <T> T |
defaultValue(T value,
T defaultValue) |
int |
getAbsoluteMaxSizeMB() |
String |
getDataDir()
Returns the directory where blobs will be stored.
|
int |
getFirstLevelTTL() |
String |
getId()
The descriptor id, descriptors with same id are merged.
|
Class<? extends TransientStoreProvider> |
getKlass()
Returns the implementation class, or
null if not defined. |
String |
getName() |
Map<String,String> |
getProperties()
Returns properties.
|
int |
getSecondLevelTTL() |
int |
getTargetMaxSizeMB() |
TransientStoreConfig |
merge(Descriptor o)
Returns a descriptor representing
other merged into this |
void |
setAbsoluteMaxSizeMB(int absoluteMaxSizeMB)
Deprecated.
since 10.10, unused
|
void |
setFirstLevelTTL(int firstLevelTTL)
Deprecated.
since 10.10, unused
|
void |
setSecondLevelTTL(int secondLevelTTL)
Deprecated.
since 10.10, unused
|
void |
setTargetMaxSizeMB(int targetMaxSizeMB)
Deprecated.
since 10.10, unused
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doesRemove
public static final int DEFAULT_TARGET_MAX_SIZE_MB
public static final int DEFAULT_ABSOLUTE_MAX_SIZE_MB
public static final int DEFAULT_FIRST_LEVEL_TTL
public static final int DEFAULT_SECOND_LEVEL_TTL
protected Integer targetMaxSizeMB
protected Integer absoluteMaxSizeMB
protected Integer firstLevelTTL
protected Integer secondLevelTTL
public Class<? extends TransientStoreProvider> implClass
protected Map<String,String> properties
public TransientStoreConfig()
public TransientStoreConfig(String name)
public TransientStoreConfig(TransientStoreConfig other)
public TransientStoreConfig merge(Descriptor o)
Descriptor
other
merged into this
Default implementation returns other
.
merge
in interface Descriptor
protected static <T> T defaultValue(T value, T defaultValue)
public String getId()
Descriptor
To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden toString()
for exemple.
getId
in interface Descriptor
public int getTargetMaxSizeMB()
@Deprecated public void setTargetMaxSizeMB(int targetMaxSizeMB)
public int getAbsoluteMaxSizeMB()
@Deprecated public void setAbsoluteMaxSizeMB(int absoluteMaxSizeMB)
public int getFirstLevelTTL()
@Deprecated public void setFirstLevelTTL(int firstLevelTTL)
public int getSecondLevelTTL()
@Deprecated public void setSecondLevelTTL(int secondLevelTTL)
public String getDataDir()
public Map<String,String> getProperties()
public Class<? extends TransientStoreProvider> getKlass()
null
if not defined.Copyright © 2019 Nuxeo. All rights reserved.