JBoss Community Archive (Read Only)

ModeShape 5

File System

Description

A binary store which stores data on disk, in a configured location.

Configuration

JSON

 "storage" : {
   "binaryStorage" : {
       "type" : "file",
       "directory": "target/persistent_repository/binaries",
       "trash" : "target/persistent_repository/binaries/trash"  
    }
  }

JBoss AS

<repository>
  <file-binary-storage path="modeshape/sample/binaries" trash="modeshape/sample/binaries_trash" relative-to="jboss.server.data.dir"/>
</repository>

Attributes

Name

Required

Configuration

Description

directory

yes

JSON

the path on the file system where the binaries should be stored

trash

no

JSON and JBoss AS

the path on the file system where unused binaries should be stored. In JBoss AS this should be a relative path to the relative-to attribute

path

yes

JBoss AS

the relative path to the relative-to attribute where the binaries should be stored

relative-to

no

JBoss AS

the base folder relative to which the path and trash attributes will be interpreted. Defaults to jboss.server.data.dir

plus the common attributes described here

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