Class TransientStoreConfig
- java.lang.Object
-
- org.nuxeo.ecm.core.transientstore.api.TransientStoreConfig
-
- All Implemented Interfaces:
Descriptor
public class TransientStoreConfig extends Object implements Descriptor
XMapdescriptor for representing the Configuration of aTransientStore- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegerabsoluteMaxSizeMBstatic intDEFAULT_ABSOLUTE_MAX_SIZE_MBstatic intDEFAULT_FIRST_LEVEL_TTLstatic intDEFAULT_SECOND_LEVEL_TTLstatic intDEFAULT_TARGET_MAX_SIZE_MBprotected IntegerfirstLevelTTLClass<? extends TransientStoreProvider>implClassStringnameprotected Stringpathprotected Map<String,String>propertiesprotected IntegersecondLevelTTLprotected IntegertargetMaxSizeMB-
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> TdefaultValue(T value, T defaultValue)intgetAbsoluteMaxSizeMB()StringgetDataDir()Returns the directory where blobs will be stored.intgetFirstLevelTTL()StringgetId()The descriptor id, descriptors with same id are merged.Class<? extends TransientStoreProvider>getKlass()Returns the implementation class, ornullif not defined.StringgetName()Map<String,String>getProperties()Returns properties.intgetSecondLevelTTL()intgetTargetMaxSizeMB()TransientStoreConfigmerge(Descriptor o)Returns a descriptor representingothermerged intothisvoidsetAbsoluteMaxSizeMB(int absoluteMaxSizeMB)Deprecated.since 10.10, unusedvoidsetFirstLevelTTL(int firstLevelTTL)Deprecated.since 10.10, unusedvoidsetSecondLevelTTL(int secondLevelTTL)Deprecated.since 10.10, unusedvoidsetTargetMaxSizeMB(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
-
targetMaxSizeMB
protected Integer targetMaxSizeMB
-
absoluteMaxSizeMB
protected Integer absoluteMaxSizeMB
-
firstLevelTTL
protected Integer firstLevelTTL
-
secondLevelTTL
protected Integer secondLevelTTL
-
implClass
public Class<? extends TransientStoreProvider> implClass
-
properties
protected Map<String,String> properties
-
-
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:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
-
defaultValue
protected static <T> T defaultValue(T value, T defaultValue)
-
getId
public String getId()
Description copied from interface:DescriptorThe 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:
getIdin interfaceDescriptor
-
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
-
getProperties
public Map<String,String> getProperties()
Returns properties.- Since:
- 10.1
-
getKlass
public Class<? extends TransientStoreProvider> getKlass()
Returns the implementation class, ornullif not defined.- Since:
- 10.10
-
-