diff options
| author | Shireesh Anjal <shireesh@gluster.com> | 2011-02-08 21:09:29 +0530 |
|---|---|---|
| committer | Shireesh Anjal <shireesh@gluster.com> | 2011-02-08 21:09:29 +0530 |
| commit | 9438d94101e33638affc463953bd22d18ca0c6d6 (patch) | |
| tree | 8f25d09622ef0f628bea92f7c52c7dd4f9e738a9 /com.gluster.storage.management.server/src/applicationContext.xml | |
| parent | cf9c3498b400ea5b04a2d93e019e94c85759ea8a (diff) | |
Introduced server discovery task
Diffstat (limited to 'com.gluster.storage.management.server/src/applicationContext.xml')
| -rw-r--r-- | com.gluster.storage.management.server/src/applicationContext.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/com.gluster.storage.management.server/src/applicationContext.xml b/com.gluster.storage.management.server/src/applicationContext.xml index 4167b5cd..90566c7f 100644 --- a/com.gluster.storage.management.server/src/applicationContext.xml +++ b/com.gluster.storage.management.server/src/applicationContext.xml @@ -1,8 +1,22 @@ <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/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="aws"/> + </bean> </beans>
\ No newline at end of file |
