fire-detector-controller.composite 3.26 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!--  Copyright (C) 2008-2012 Inria, University of Lille 							-->
<!--																				-->
<!--  This library is free software; you can redistribute it and/or 				-->
<!--  modify it under the terms of the GNU Lesser General Public 					-->
<!--  License as published by the Free Software Foundation; either 					-->
<!--  version 2 of the License, or (at your option) any later version. 				-->
<!--																				-->
<!--  This library is distributed in the hope that it will be useful, 				-->
<!--  but WITHOUT ANY WARRANTY; without even the implied warranty of 				-->
<!--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 			-->
<!--  Lesser General Public License for more details. 								-->
<!--																				-->
<!--  You should have received a copy of the GNU Lesser General Public 				-->
<!--  License along with this library; if not, write to the Free Software 			-->
<!--  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 	-->
<!-- 																				-->
<!--  Contact: frascati@ow2.org 													-->	
<!--                                                                                -->
<!--  Author: Gwenael CATTEZ                                                     	-->
<!-- 																				-->
<!--  Contributors : 				                                                -->

24
25
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
	xmlns:esper="org/ow2/frascati/esper" xmlns:esperEvents="http://frascati.ow2.org/esper"
26
27
	xmlns:statementIDs="http://frascati.ow2.org/esper" xsi:schemaLocation="http://frascati.ow2.org/esper StatementIds.xsd"
	xmlns:frascati="http://frascati.ow2.org/xmlns/sca/1.1" name="fire-detector-controller">
28

29
	<reference name="fireDetectorModel" promote="fire-detector-controller/fireDetectorModel" />
30

31
32
33
34
35
	<component name="fire-detector-controller" constrainingType="esper:Listener">
		<implementation.java class="org.ow2.frascati.firedetector.model.listeners.gui.FireDetectorControllerGUI" />
		<property name="statementIDs" type="statementIDs:StatementIDs">
			<statementIDs:StatementIDs>
				<statementIDs:StatementID>Temperature</statementIDs:StatementID>
36
				<statementIDs:StatementID>TemperatureAlert</statementIDs:StatementID>
37
38
39
40
41
42
43
44
45
46
47
				<statementIDs:StatementID>CO</statementIDs:StatementID>
				<statementIDs:StatementID>COAlert</statementIDs:StatementID>
				<statementIDs:StatementID>CombinedAlert</statementIDs:StatementID>
			</statementIDs:StatementIDs>
		</property>
		<reference name="fireDetectorModel">
			<interface.java
				interface="org.ow2.frascati.firedetector.model.FireDetectorModelItf" />
		</reference>
		<service name="run">
			<interface.java interface="java.lang.Runnable" />
48
		</service>
49
50
51
52
		<reference name="alarmListener">
			<interface.wsdl interface="AlarmListener.wsdl#wsdl.interface(AlarmListener)" />
			 <gcs:binding.jgroups xmlns:gcs="http://frascati.ow2.org/xmlns/gcs/1.0" cluster="fire_detector"/>
		</reference>
53
54
	</component>

55
	<service name="run-controller-gui" promote="fire-detector-controller/run"></service>
56
	<service name="eventListener" promote="fire-detector-controller/eventListener" >
57
<!-- 		<frascati:binding.rest uri="http://localhost:9022/EventListener" /> -->
58
	</service>
59
60

</composite>