blob: 86a8708f28cb22b8759ede44d89b9ec97bc649ae (
plain)
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
|
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<context:component-scan base-package="com.gluster.storage.management.server" />
<task:scheduler id="taskScheduler" />
<task:executor id="taskExecutor" pool-size="1" />
<task:annotation-driven executor="taskExecutor"
scheduler="taskScheduler" />
<task:scheduled-tasks>
<task:scheduled ref="serverDiscoveryTask" method="discoverServers"
fixed-delay="60000" />
</task:scheduled-tasks>
<bean id="environment" class="java.lang.String">
<constructor-arg value="vmware" />
</bean>
<!-- Derby embedded data source -->
<!-- bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
lazy-init="false"> <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver"
/> <property name="url" value="jdbc:derby:work/data;create=true" /> <property
name="username" value="gluster" /> <property name="password" value="gluster"
/> </bean -->
<bean id="dataSourceFactory"
class="com.gluster.storage.management.server.data.GlusterDataSource" />
<bean id="dataSource"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject">
<ref local="dataSourceFactory" />
</property>
<property name="targetMethod">
<value>getDataSource</value>
</property>
</bean>
<!-- bean id="dataSource" class="com.gluster.storage.management.server.data.GlusterDataSource"
lazy-init="false" autowire="byType" / -->
<bean class="com.gluster.storage.management.server.tasks.InitServerTask"
init-method="initServer" depends-on="dataSource">
<property name="dataSource" ref="dataSource" />
</bean>
</beans>
|