Skip to content

Commit

Permalink
Adding new default config called minimal-default/leveldb-default
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Dec 13, 2013
1 parent 44edb61 commit 3e356c8
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
@@ -0,0 +1,37 @@
{
"name" : "repo",
"jndiName" : "",
"workspaces" : {
"predefined" : ["default"],
"default" : "default",
"allowCreation" : true
},
"query" : {
"enabled" : false,
"indexStorage" : {
"type" : "filesystem",
"location" : "${fcrepo.modeshape.index.location:target/indexes}",
"lockingStrategy" : "native",
"fileSystemAccessType" : "auto"
}
},
"storage" : {
"cacheName" : "FedoraRepository",
"cacheConfiguration" : "${fcrepo.infinispan.cache_configuration:config/infinispan/leveldb-default/infinispan.xml}",
"binaryStorage" : {
"type" : "file",
"directory" : "${fcrepo.binary-store-path:target/binaries}",
"minimumBinarySizeInBytes" : 4096
}
},
"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
"useOnFailedLogin" : false
},
"providers" : [
{ "classname" : "org.fcrepo.http.commons.session.BypassSecurityServletAuthenticationProvider" }
]
},
"node-types" : ["fedora-node-types.cnd"]
}
@@ -0,0 +1,38 @@
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">
<global>
<globalJmxStatistics enabled="false" allowDuplicateDomains="true"/>
</global>

<default>
<expiration wakeUpInterval="-1" />
<unsafe unreliableReturnValues="true" />
</default>

<namedCache name="FedoraRepository">

<eviction maxEntries="500" strategy="LIRS" threadPolicy="PIGGYBACK"/>

<transaction
transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
transactionMode="TRANSACTIONAL" lockingMode="PESSIMISTIC"/>

<!-- Define the cache loaders (i.e., cache stores). Passivation is false
because we want *all* data to be persisted, not just what doesn't fit
into memory. Shared is false because there are no other caches sharing
this file store. We set preload to false for lazy loading; may be
improved by preloading and configuring eviction. We can have multiple
cache loaders, which get chained. But we'll define just one. -->

<loaders passivation="false" shared="false" preload="false">
<leveldbStore xmlns="urn:infinispan:config:leveldb:5.2"
fetchPersistentState="true"
location="${fcrepo.ispn.repo.CacheDirPath:target}/data"
expiredLocation="${fcrepo.ispn.repo.CacheDirPath:target}/expired">
</leveldbStore>
</loaders>

</namedCache>

</infinispan>
2 changes: 1 addition & 1 deletion fcrepo-webapp/src/main/resources/spring/repo.xml
Expand Up @@ -13,7 +13,7 @@

<bean name="modeshapeRepofactory"
class="org.fcrepo.kernel.spring.ModeShapeRepositoryFactoryBean"
p:repositoryConfiguration="${fcrepo.modeshape.configuration:classpath:/config/rest-sessions/repository.json}"/>
p:repositoryConfiguration="${fcrepo.modeshape.configuration:classpath:/config/minimal-default/repository.json}"/>

<bean class="org.modeshape.jcr.JcrRepositoryFactory"/>

Expand Down

0 comments on commit 3e356c8

Please sign in to comment.