summaryrefslogtreecommitdiffstats
path: root/Monitoring/src/main/resources
diff options
context:
space:
mode:
authorpikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
committer pikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
commit2f2a3a129c91de540e66c3bfbe30b0df1942cd4b (patch)
tree2d313cdf0068af368d4de6067d676be16f6a6464 /Monitoring/src/main/resources
parentff8aa232b071a9b54dff833714a870fd0aec0b30 (diff)
downloadnovi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.zip
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.gz
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.bz2
project commit and dir tree change
Diffstat (limited to 'Monitoring/src/main/resources')
-rw-r--r--Monitoring/src/main/resources/OSGI-INF/blueprint/config.xml54
-rw-r--r--Monitoring/src/main/resources/site-packages/dependencies.pth0
2 files changed, 54 insertions, 0 deletions
diff --git a/Monitoring/src/main/resources/OSGI-INF/blueprint/config.xml b/Monitoring/src/main/resources/OSGI-INF/blueprint/config.xml
new file mode 100644
index 0000000..3b2baa4
--- /dev/null
+++ b/Monitoring/src/main/resources/OSGI-INF/blueprint/config.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<!-- Author: Blazej Pietrzak [blazej.pietrzak@man.poznan.pl] -->
+
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0">
+
+ <!-- File that stores component's configuration -->
+ <cm:property-placeholder persistent-id="eu.novi.monitoring" />
+
+ <!-- Instantiate Java object of Service.SampleService class written in Python
+ (JythonObjectFactory.createObject(Wiring.class, "Service.SampleService", ctx)) -->
+ <bean id="monitoringService" class="eu.novi.python.integration.JythonObjectFactory" factory-method="createObject">
+ <argument value="eu.novi.monitoring.Wiring" />
+ <argument value="Service.MonSrvImpl" />
+ <argument ref="blueprintBundleContext" />
+
+ <property name="testbed" value="${testbed}" />
+<!-- <property name="userFeedback" ref="refUserFeedback"/>-->
+ </bean>
+
+ <reference-list id="refListMonSrv" interface="eu.novi.monitoring.MonSrv" member-type="service-object" availability="optional" />
+
+ <!-- Register a distributed service -->
+ <service ref="monitoringService" interface="eu.novi.monitoring.MonSrv">
+ <service-properties>
+ <entry key="service.exported.interfaces" value="*" />
+ <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
+ <entry key="testbed" value="${testbed}" />
+ </service-properties>
+ </service>
+
+ <bean id="refMonSrvDiscovery" class="eu.novi.monitoring.MonDiscoveryImpl">
+ <property name="testbed" value="${testbed}"/>
+ <property name="monSrvList" ref="refListMonSrv"/>
+ </bean>
+
+
+ <service ref="refMonSrvDiscovery" interface="eu.novi.monitoring.MonDiscovery">
+ <service-properties>
+ <!-- All service interfaces are available for Distributed OSGi -->
+ <entry key="service.exported.interfaces" value="*" />
+ <entry key="testbed" value="${testbed}" />
+ </service-properties>
+ </service>
+
+<!-- <reference id="refUserFeedback" interface="eu.novi.feedback.event.ReportEvent" />-->
+
+ <!-- Get SampleService instances.
+ Unfortunately the filter (!(testbed=${testbed})) does not work, so filtering must be done inside addService method -->
+ <!--<reference-list interface="eu.novi.monitoring.MonSrv" availability="optional">
+ <reference-listener ref="monitoringService" bind-method="addService" unbind-method="removeService" />
+ </reference-list>-->
+</blueprint>
diff --git a/Monitoring/src/main/resources/site-packages/dependencies.pth b/Monitoring/src/main/resources/site-packages/dependencies.pth
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Monitoring/src/main/resources/site-packages/dependencies.pth