JBoss Community Archive (Read Only)

ModeShape 4

Infinispan

Description

A binary store which stores binary values in one or more Infinispan caches. This type of binary store persists two kinds of information: the "main" binary data plus a metadata section.

Configuration

JSON

"storage" : {       
        "binaryStorage" : {
            "type"  : "cache",            
            "cacheConfiguration" : "config/infinispan-persistent-binary-store.xml",
            "dataCacheName" : "binary-data",
            "metadataCacheName" : "binary-meta-data",
            "chunkSize" : 1000
        }
    }

JBoss AS

<repository config-relative-to="${jboss.server.config.dir}">
  <cache-binary-storage data-cache-name="datacache" metadata-cache-name="metadatacache" chunk-size="100" cache-config="modeshape/cache-config.xml"/>
</repository>

Attributes

Name

Required

Configuration

Description

cacheConfiguration

yes

JSON

the path (relative or absolute) to an Infinispan configuration file which contains the cache configurations

dataCacheName

yes

JSON

the name of the Infinispan cache where the main binary data will be persisted

metadataCacheName

yes

JSON

the name of the Infinispan cache where the binary meta-data will be persisted

chunkSize

no

JSON

The size (in bytes) of a segment which dictates into how many segments a binary value is split when stored in the cache. Each chunk represents an entry in the cache

data-cache-name

yes

JBoss AS

same as dataCacheName

metadata-cache-name

yes

JBoss AS

same as metadataCacheName

chunk-size

no

JBoss AS

same as chunkSize

cache-config

no

JBoss AS

a path relative to the repository's config-relative-to attribute towards the Infinispan configuration file. If not specified, ModeShape will look in the same configuration file where the repository main cache is defined

plus the common attributes described here

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:10:03 UTC, last content change 2016-03-23 10:03:28 UTC.