Class TransientStoreConfig
- java.lang.Object
-
- org.nuxeo.ecm.core.transientstore.api.TransientStoreConfig
-
- All Implemented Interfaces:
Descriptor
public class TransientStoreConfig extends Object implements Descriptor
XMap
descriptor for representing the Configuration of aTransientStore
- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description TransientStoreConfig()
TransientStoreConfig(String name)
TransientStoreConfig(TransientStoreConfig other)
Copy constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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, ornull
if not defined.String
getName()
Map<String,String>
getProperties()
Returns properties.int
getSecondLevelTTL()
int
getTargetMaxSizeMB()
TransientStoreConfig
merge(Descriptor o)
Returns a descriptor representingother
merged intothis
void
setAbsoluteMaxSizeMB(int absoluteMaxSizeMB)
Deprecated.since 10.10, unusedvoid
setFirstLevelTTL(int firstLevelTTL)
Deprecated.since 10.10, unusedvoid
setSecondLevelTTL(int secondLevelTTL)
Deprecated.since 10.10, unusedvoid
setTargetMaxSizeMB(int targetMaxSizeMB)
Deprecated.since 10.10, unused-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
-
-
-
Field Detail
-
DEFAULT_TARGET_MAX_SIZE_MB
public static final int DEFAULT_TARGET_MAX_SIZE_MB
- See Also:
- Constant Field Values
-
DEFAULT_ABSOLUTE_MAX_SIZE_MB
public static final int DEFAULT_ABSOLUTE_MAX_SIZE_MB
- See Also:
- Constant Field Values
-
DEFAULT_FIRST_LEVEL_TTL
public static final int DEFAULT_FIRST_LEVEL_TTL
- See Also:
- Constant Field Values
-
DEFAULT_SECOND_LEVEL_TTL
public static final int DEFAULT_SECOND_LEVEL_TTL
- See Also:
- Constant Field Values
-
name
public String name
-
path
protected String path
-
targetMaxSizeMB
protected Integer targetMaxSizeMB
-
absoluteMaxSizeMB
protected Integer absoluteMaxSizeMB
-
firstLevelTTL
protected Integer firstLevelTTL
-
secondLevelTTL
protected Integer secondLevelTTL
-
implClass
public Class<? extends TransientStoreProvider> implClass
-
-
Constructor Detail
-
TransientStoreConfig
public TransientStoreConfig()
-
TransientStoreConfig
public TransientStoreConfig(String name)
-
TransientStoreConfig
public TransientStoreConfig(TransientStoreConfig other)
Copy constructor.- Since:
- 10.10
-
-
Method Detail
-
merge
public TransientStoreConfig merge(Descriptor o)
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
defaultValue
protected static <T> T defaultValue(T value, T defaultValue)
-
getId
public String getId()
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getName
public String getName()
-
getTargetMaxSizeMB
public int getTargetMaxSizeMB()
-
setTargetMaxSizeMB
@Deprecated public void setTargetMaxSizeMB(int targetMaxSizeMB)
Deprecated.since 10.10, unused
-
getAbsoluteMaxSizeMB
public int getAbsoluteMaxSizeMB()
-
setAbsoluteMaxSizeMB
@Deprecated public void setAbsoluteMaxSizeMB(int absoluteMaxSizeMB)
Deprecated.since 10.10, unused
-
getFirstLevelTTL
public int getFirstLevelTTL()
-
setFirstLevelTTL
@Deprecated public void setFirstLevelTTL(int firstLevelTTL)
Deprecated.since 10.10, unused
-
getSecondLevelTTL
public int getSecondLevelTTL()
-
setSecondLevelTTL
@Deprecated public void setSecondLevelTTL(int secondLevelTTL)
Deprecated.since 10.10, unused
-
getDataDir
public String getDataDir()
Returns the directory where blobs will be stored.- Since:
- 9.1
-
getKlass
public Class<? extends TransientStoreProvider> getKlass()
Returns the implementation class, ornull
if not defined.- Since:
- 10.10
-
-