source: raptor-ica/trunk/src/main/config/ica-core.xml @ 789

Revision 789, 5.0 KB checked in by philsmart, 2 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2        <!--
3
4                Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk>
5
6                Licensed under the Apache License, Version 2.0 (the "License"); you
7                may not use this file except in compliance with the License. You may
8                obtain a copy of the License at
9
10                http://www.apache.org/licenses/LICENSE-2.0 Unless required by
11                applicable law or agreed to in writing, software distributed under the
12                License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13                CONDITIONS OF ANY KIND, either express or implied. See the License for
14                the specific language governing permissions and limitations under the
15                License.
16        -->
17<beans xmlns="http://www.springframework.org/schema/beans"
18        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
19        xsi:schemaLocation="
20        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
21        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
22
23        <!-- Polling trigger setup -->
24        <bean id="ICAProcessQuickTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
25                <property name="jobDetail">
26                        <ref local="ICAProcessJobDetail" />
27                </property>
28        <property name="startDelay" value="1000" />
29                <property name="repeatInterval" value="30000" />
30        </bean>
31
32        <bean id="ICAProcessJobDetail"
33                class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
34                <property name="targetObject">
35                        <ref bean="ICAProcess" />
36                </property>
37                <property name="targetMethod">
38                        <value>capture</value>
39                </property>
40                <property name="concurrent">
41                        <value>false</value>
42                </property>
43        </bean>
44
45    <!-- release trigger setup -->
46    <bean id="icaReleaseQuickTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
47        <property name="jobDetail">
48            <ref local="icaReleaseJobDetail" />
49        </property>
50        <property name="startDelay" value="10000" />
51        <property name="repeatInterval" value="10000" />
52    </bean>
53
54    <bean id="icaReleaseJobDetail"
55        class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
56        <property name="targetObject">
57            <ref bean="ICAProcess" />
58        </property>
59        <property name="targetMethod">
60            <value>release</value>
61        </property>
62        <property name="concurrent">
63            <value>false</value>
64        </property>
65    </bean>
66
67    <!-- event sweep (garbage collection) trigger setup -->
68    <bean id="icaGarbageCollectionQuickTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
69        <property name="jobDetail">
70            <ref local="icaGarbageCollectionJobDetail" />
71        </property>
72        <property name="startDelay" value="15000" />
73        <property name="repeatInterval" value="55000" />
74    </bean>
75
76    <bean id="icaGarbageCollectionJobDetail"
77        class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
78        <property name="targetObject">
79            <ref bean="ICAProcess" />
80        </property>
81        <property name="targetMethod">
82            <value>garbageCollect</value>
83        </property>
84        <property name="concurrent">
85            <value>false</value>
86        </property>
87    </bean>
88
89    <!--  DONE -->
90
91    <!--  Trigger setup -->
92        <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
93                <property name="triggers">
94                        <list>
95                                <ref local="ICAProcessQuickTrigger" />
96                <ref local="icaReleaseQuickTrigger" />
97                <ref local="icaGarbageCollectionQuickTrigger"/>
98                        </list>
99                </property>
100        </bean>
101        <!--  DONE -->
102
103
104        <bean id="ICAProcess" class="uk.ac.cardiff.raptorica.service.IcaProcessImpl">
105                <property name="engine">
106                        <ref bean="CaptureEngine"></ref>
107                </property>
108        </bean>
109
110        <!--
111                this bean config kicks of the singleton engine instance which is then
112                used by all services of the ICA
113        -->
114        <bean id="CaptureEngine" class="uk.ac.cardiff.raptorica.engine.ICAEngine">
115                <property name="dataAccessRegister"><ref bean="dataAccessRegister"></ref></property>
116                <property name="eventReleaseClient"><ref bean="eventReleaseClient"></ref></property>
117                <property name="icaMetadata"><ref bean="ICAMetadata"></ref></property>
118        </bean>
119
120
121
122        <bean id="eventReleaseClient" class="uk.ac.cardiff.raptor.remoting.client.impl.EventReleaseClientImpl">
123                <property name="endpointRegistry"><ref bean="endpointRegistry"/></property>
124                <property name="eventReleaseEngine"><ref bean="eventReleaseEngine"></ref></property>
125        </bean>
126
127        <bean id="eventReleaseEngine" class="uk.ac.cardiff.raptor.registry.EventReleaseEngine">
128                <property name="attributeFilterEngine"><ref bean="attributeFilterEngine"/></property>
129                <property name="serviceEndpointInterface"><ref bean="serviceEndpointInterface"/></property>
130        </bean>
131
132        <bean id="attributeFilterEngine" class="uk.ac.cardiff.raptor.attribute.filtering.AttrributeFilterEngine"/>
133
134
135
136    <import resource="metadata.xml"/>
137        <import resource="database.xml"/>
138        <import resource="event-parse.xml" />
139        <import resource="event-release.xml" />
140
141</beans>
Note: See TracBrowser for help on using the repository browser.