summaryrefslogtreecommitdiffstats
path: root/sdnr/northbound/energysavings/provider/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/northbound/energysavings/provider/src/main/resources')
-rw-r--r--sdnr/northbound/energysavings/provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml24
-rw-r--r--sdnr/northbound/energysavings/provider/src/main/resources/sdnr-energy-savings.properties13
2 files changed, 37 insertions, 0 deletions
diff --git a/sdnr/northbound/energysavings/provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml b/sdnr/northbound/energysavings/provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml
new file mode 100644
index 000000000..80d1d1a3f
--- /dev/null
+++ b/sdnr/northbound/energysavings/provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
+
+ <reference id="dataBroker"
+ interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
+ odl:type="default" />
+
+ <bean id="provider"
+ class="org.onap.sdnc.northbound.sdnr.impl.EnergysavingsProvider"
+ init-method="init" destroy-method="close">
+ <argument ref="dataBroker" />
+ </bean>
+
+</blueprint>
diff --git a/sdnr/northbound/energysavings/provider/src/main/resources/sdnr-energy-savings.properties b/sdnr/northbound/energysavings/provider/src/main/resources/sdnr-energy-savings.properties
new file mode 100644
index 000000000..90c773a7e
--- /dev/null
+++ b/sdnr/northbound/energysavings/provider/src/main/resources/sdnr-energy-savings.properties
@@ -0,0 +1,13 @@
+# Parameters for the different REST messages
+
+# To the Energy Savings server
+energySavings.url = http://energy-savings-server
+energySavings.httpMethod = post
+energySavings.authentication = none
+
+# To publish a DMaaP topic that is a response to a energy savings request
+dmaapPolicy.url = https://dmaap-message-router/events
+dmaapPolicy.httpMethod = post
+energySavings.authentication = basic
+energySavings.user = user
+energySavings.password = password