1 |
26600
|
sandro.lab
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3 |
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
|
4 |
|
|
xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:wsa="http://cxf.apache.org/ws/addressing"
|
5 |
|
|
xmlns:p="http://www.springframework.org/schema/p" xmlns:http="http://cxf.apache.org/transports/http/configuration"
|
6 |
|
|
xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template"
|
7 |
|
|
xmlns:util="http://www.springframework.org/schema/util"
|
8 |
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
9 |
|
|
http://cxf.apache.org/ws/addressing http://cxf.apache.org/schemas/ws-addr-conf.xsd
|
10 |
|
|
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
|
11 |
|
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
|
12 |
|
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
13 |
|
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
|
14 |
|
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd">
|
15 |
|
|
|
16 |
|
|
<bean id="actionManagerService" class="eu.dnetlib.actionmanager.ActionManagerServiceImpl"
|
17 |
|
|
p:core-ref="hbaseActionManagerCore" init-method="start"
|
18 |
|
|
p:notificationHandler-ref="actionManagerNotificationHandler"
|
19 |
|
|
destroy-method="stop" />
|
20 |
|
|
|
21 |
|
|
<bean
|
22 |
|
|
id="actionManagerNotificationHandler"
|
23 |
|
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerExecutorNotificationHandler"
|
24 |
|
|
p:blackboardExecutor-ref="actionManagerBlackboardExecutor" />
|
25 |
|
|
|
26 |
|
|
<bean id="actionManagerBlackboardExecutor"
|
27 |
|
|
class="eu.dnetlib.enabling.tools.blackboard.BlackboardServerActionExecutor"
|
28 |
|
|
p:blackboardHandler-ref="blackboardHandler"
|
29 |
|
|
p:actionType="eu.dnetlib.actionmanager.blackboard.ActionManagerActions"
|
30 |
|
|
p:incomplete="false">
|
31 |
|
|
<property name="actionMap">
|
32 |
|
|
<map>
|
33 |
|
|
<entry key="DELETE">
|
34 |
|
|
<bean class="eu.dnetlib.actionmanager.blackboard.DeleteActionManagerAction"/>
|
35 |
|
|
</entry>
|
36 |
|
|
<entry key="PROMOTE">
|
37 |
|
|
<bean class="eu.dnetlib.actionmanager.blackboard.PromoteActionManagerAction"/>
|
38 |
|
|
</entry>
|
39 |
|
|
<entry key="FEED">
|
40 |
|
|
<bean class="eu.dnetlib.actionmanager.blackboard.FeedActionManagerAction"/>
|
41 |
|
|
</entry>
|
42 |
|
|
|
43 |
|
|
</map>
|
44 |
|
|
</property>
|
45 |
|
|
|
46 |
|
|
</bean>
|
47 |
|
|
|
48 |
|
|
<bean id="hbaseActionManagerCore" class="eu.dnetlib.actionmanager.hbase.HBaseActionManagerCore"
|
49 |
|
|
p:actionFactory-ref="actionFactory"
|
50 |
|
|
p:hbaseClient-ref="hbaseClient"
|
51 |
|
|
p:informationServiceClient-ref="actionmanagerISClient"/>
|
52 |
|
|
|
53 |
|
|
<bean id="hbaseClient" class="eu.dnetlib.actionmanager.hbase.HBaseClient"
|
54 |
|
|
p:tableName="${hbase.actions.table}"
|
55 |
|
|
init-method="init" />
|
56 |
|
|
|
57 |
|
|
<bean id="actionFactory" class="eu.dnetlib.actionmanager.actions.ActionFactory">
|
58 |
|
|
<property name="xslts">
|
59 |
|
|
<util:map>
|
60 |
|
|
<entry key="dmf2actions"
|
61 |
|
|
value="classpath:/eu/dnetlib/actionmanager/xslt/dmf2insertActions.xslt" />
|
62 |
|
|
<entry key="dmf2updateActions"
|
63 |
|
|
value="classpath:/eu/dnetlib/actionmanager/xslt/dmf2updateActions.xslt" />
|
64 |
|
|
<entry key="datacite2actions"
|
65 |
|
|
value="classpath:/eu/dnetlib/actionmanager/xslt/datacite2insertActions.xslt" />
|
66 |
|
|
<entry key="datacite2updateActions"
|
67 |
|
|
value="classpath:/eu/dnetlib/actionmanager/xslt/datacite2updateActions.xslt" />
|
68 |
|
|
<entry key="rels2actions"
|
69 |
|
|
value="classpath:/eu/dnetlib/actionmanager/xslt/rels2actions.xslt" />
|
70 |
|
|
</util:map>
|
71 |
|
|
</property>
|
72 |
|
|
</bean>
|
73 |
|
|
|
74 |
|
|
<!-- Workflows -->
|
75 |
|
|
<bean id="actionManagerWorkflowLauncher" class="eu.dnetlib.actionmanager.wf.ActionManagerWorkflowLauncher"
|
76 |
|
|
p:deleteGraph-ref="actionManagerDeleteGraph"
|
77 |
|
|
p:commitGraph-ref="actionManagerCommitGraph"
|
78 |
|
|
p:processRegistry-ref="msroProcessRegistry"
|
79 |
|
|
p:actionTable="${hbase.actions.table}"
|
80 |
|
|
p:dataTable="${hbase.mapred.datatable}"
|
81 |
|
|
p:infomationServiceClient-ref="actionmanagerISClient"/>
|
82 |
|
|
|
83 |
|
|
<bean id="actionManagerDeleteGraph" class="eu.dnetlib.workflow.sarasvati.SarasvatiGraphFactory"
|
84 |
|
|
p:engine-ref="msroWfEngine"
|
85 |
|
|
p:definition="classpath:/eu/dnetlib/actionmanager/wf/actions-delete-hbase.wf.xml" />
|
86 |
|
|
|
87 |
|
|
<bean id="actionManagerCommitGraph" class="eu.dnetlib.workflow.sarasvati.SarasvatiGraphFactory"
|
88 |
|
|
p:engine-ref="msroWfEngine"
|
89 |
|
|
p:definition="classpath:/eu/dnetlib/actionmanager/wf/actions-commit-hbase.wf.xml" />
|
90 |
|
|
|
91 |
|
|
<bean id="wfNodeDeleteActions" class="eu.dnetlib.actionmanager.wf.HbaseDeleteActionsJobNode"
|
92 |
|
|
p:hadoopJob-ref="hbaseDeleteActionsJob"
|
93 |
|
|
scope="prototype" />
|
94 |
|
|
|
95 |
|
|
<bean id="wfNodeCommitActions" class="eu.dnetlib.actionmanager.wf.HbaseCommitActionsJobNode"
|
96 |
|
|
p:hadoopJob-ref="hbaseCommitActionsJob"
|
97 |
|
|
scope="prototype" />
|
98 |
|
|
|
99 |
|
|
<!-- endpoints -->
|
100 |
|
|
<jaxws:endpoint id="actionManagerServiceEndpoint"
|
101 |
|
|
implementor="#actionManagerService" implementorClass="eu.dnetlib.actionmanager.rmi.ActionManagerService"
|
102 |
|
|
address="/actionManager" />
|
103 |
|
|
|
104 |
|
|
<template:instance name="serviceRegistrationManager"
|
105 |
|
|
t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl"
|
106 |
|
|
t:name="actionManagerServiceRegistrationManager" t:service="actionManagerService"
|
107 |
|
|
t:endpoint="actionManagerServiceEndpoint" t:jobScheduler="jobScheduler"
|
108 |
|
|
t:serviceRegistrator="blackboardServiceRegistrator" />
|
109 |
|
|
|
110 |
|
|
<!-- Information Service Client -->
|
111 |
|
|
<bean id="actionmanagerISClient" class="eu.dnetlib.actionmanager.is.ISClient"
|
112 |
|
|
p:registryLocator-ref="registryLocator" p:lookupLocator-ref="lookupLocator"
|
113 |
|
|
p:actionManagerSetDsTemplate-ref="actionManagerSetDsTemplate"
|
114 |
|
|
p:endpoint-ref="actionManagerServiceEndpoint" p:eprBuilder-ref="jaxwsEndpointReferenceBuilder" />
|
115 |
|
|
|
116 |
|
|
<bean id="actionManagerSetDsTemplate"
|
117 |
|
|
class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
|
118 |
|
|
p:template="classpath:/eu/dnetlib/actionmanager/tmpl/actionManagerSetDS.xml"
|
119 |
|
|
scope="prototype" />
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
</beans>
|