-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathakubra-llstore.xml
71 lines (64 loc) · 2.57 KB
/
akubra-llstore.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?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>