bacce3da720ff30969dbffbef0a68aa07f0a3b20
[netvirt.git] / qosservice / impl / src / main / resources / org / opendaylight / blueprint / qosservice.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="configurationAdmin"
15                interface="org.osgi.service.cm.ConfigurationAdmin" />
16     <reference id="dataBroker"
17                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
18                odl:type="default" />
19     <reference id="iMdsalApiManager"
20                interface="org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager" />
21     <reference id="iNeutronVpnManager"
22                interface="org.opendaylight.netvirt.neutronvpn.interfaces.INeutronVpnManager" />
23     <reference id="entityOwnershipService"
24                interface="org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService" />
25     <reference id="jobCoordinator"
26                interface="org.opendaylight.infrautils.jobcoordinator.JobCoordinator" />
27     <reference id="serviceRecoveryRegistry"
28                interface="org.opendaylight.genius.srm.ServiceRecoveryRegistry"/>
29     <reference id="iInterfaceManager"
30                interface="org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager" />
31
32     <odl:rpc-service id="odlInterfaceRpcService"
33                  interface="org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService" />
34
35     <odl:clustered-app-config id="qosalertConfig"
36                               binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfig"
37                               default-config-file-name="netvirt-qosservice-config.xml"
38                               update-strategy="none">
39     </odl:clustered-app-config>
40
41     <odl:rpc-service id="opendaylightDirectStatisticsService"
42                      interface="org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.OpendaylightDirectStatisticsService" />
43
44
45     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
46
47         <command>
48             <action class="org.opendaylight.netvirt.qosservice.QosAlertEnableCLI">
49                 <property name="qosAlertManager" ref="qosAlertManager"/>
50             </action>
51         </command>
52         <command>
53             <action class="org.opendaylight.netvirt.qosservice.QosAlertThresholdCLI">
54                 <property name="qosAlertManager" ref="qosAlertManager"/>
55             </action>
56         </command>
57         <command>
58             <action class="org.opendaylight.netvirt.qosservice.QosAlertPollIntervalCLI">
59                 <property name="qosAlertManager" ref="qosAlertManager"/>
60             </action>
61         </command>
62
63     </command-bundle>
64
65     <bean id="qosAlertGenerator" class="org.opendaylight.netvirt.qosservice.QosAlertGenerator">
66       <argument ref="configurationAdmin"/>
67       <cm:managed-properties persistent-id="org.opendaylight.netvirt.qosservice"
68                            update-strategy="component-managed" update-method="update"/>
69     </bean>
70
71 </blueprint>