Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (64 sloc) 2.57 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean name="org.fcrepo.server.storage.lowlevel.ILowlevelStorage"
class="org.fcrepo.server.storage.lowlevel.akubra.AkubraLowlevelStorage"
singleton="true">
<constructor-arg>
<description>The store of serialized Fedora objects</description>
<ref bean="objectStore"/>
</constructor-arg>
<constructor-arg>
<description>The store of datastream content</description>
<ref bean="datastreamStore"/>
</constructor-arg>
<constructor-arg value="true">
<description>if true, replaceObject calls will be done in a way that
ensures the old content is not deleted until the new content is safely
written. If the objectStore already does this, this should be given as
false</description>
</constructor-arg>
<constructor-arg value="true">
<description>save as above, but for datastreamStore</description>
</constructor-arg>
</bean>
<bean name="objectStore"
class="org.akubraproject.map.IdMappingBlobStore"
singleton="true">
<constructor-arg value="urn:example.org:objectStore"/>
<constructor-arg><ref bean="fsObjectStore"/></constructor-arg>
<constructor-arg><ref bean="fsObjectStoreMapper"/></constructor-arg>
</bean>
<!-- akubra-hdfs bean for objects -->
<bean name="fsObjectStore"
class="de.fiz.akubra.hdfs.HDFSBlobStore"
singleton="true">
<!-- the hdfs namenode URI goes here -->
<constructor-arg value="hdfs://localhost:9000/fedora/objects/"/>
</bean>
<!-- hdfs id mapper -->
<bean name="fsObjectStoreMapper"
class="de.fiz.akubra.hdfs.HDFSIdMapper"
singleton="true">
<constructor-arg ref="fsObjectStore"/>
</bean>
<bean name="datastreamStore"
class="org.akubraproject.map.IdMappingBlobStore"
singleton="true">
<constructor-arg value="urn:fedora:datastreamStore"/>
<constructor-arg><ref bean="fsDatastreamStore"/></constructor-arg>
<constructor-arg><ref bean="fsDatastreamStoreMapper"/></constructor-arg>
</bean>
<!-- akubra-hdfs bean for datastreams -->
<bean name="fsDatastreamStore"
class="de.fiz.akubra.hdfs.HDFSBlobStore"
singleton="true">
<constructor-arg value="hdfs://localhost:9000/fedora/datastreams/"/>
</bean>
<!-- hdfs id mapper -->
<bean name="fsDatastreamStoreMapper"
class="de.fiz.akubra.hdfs.HDFSIdMapper"
singleton="true">
<constructor-arg ref="fsDatastreamStore"/>
</bean>
</beans>