Used in: distributed-scheme.
The backup-storage element specifies the type and configuration of backup storage for a partitioned cache.
The following table describes the elements you can define within the backup-storage element.
Element | Required/Optional | Description |
---|---|---|
<type> | Required | Specifies the type of the storage used to hold the backup data.
Legal values are:
Default value is the value specified in the tangosol-coherence.xml descriptor. |
<initial-size> | Optional | Only applicable with the off-heap and file-mapped types. Specifies the initial buffer size in bytes. The value of this element must be in the following format: [\d]+[[.][\d]]?[K|k|M|m|G|g|T|t]?[B|b]? where the first non-digit (from left to right) indicates the factor with which the preceeding decimal value should be multiplied:
If the value does not contain a factor, a factor of mega is assumed.
|
<maximum-size> | Optional | Only applicable with the off-heap and file-mapped types. Specifies the initial buffer size in bytes. The value of this element must be in the following format: [\d]+[[.][\d]]?[K|k|M|m|G|g|T|t]?[B|b]? where the first non-digit (from left to right) indicates the factor with which the preceeding decimal value should be multiplied:
If the value does not contain a factor, a factor of mega is assumed. |
<directory> | Optional | Only applicable with the file-mapped type.
Specifies the pathname for the directory that the disk persistence manager ( com.tangosol.util.nio.MappedBufferManager) will use as "root" to store files in. If not specified or specifies a non-existent directory, a temporary file in the default location is used. Default value is the value specified in the tangosol-coherence.xml descriptor. |
<class-name> | Optional | Only applicable with the custom type.
Specifies a class name for the custom storage implementation. If the class implements com.tangosol.run.xml.XmlConfigurable interface then upon construction the setConfig method is called passing the entire backup-storage element. Default value is the value specified in the tangosol-coherence.xml descriptor. |
<scheme-name> | Optional | Only applicable with the scheme type.
Specifies a scheme name for the ConfigurableCacheFactory. Default value is the value specified in the tangosol-coherence.xml descriptor. |