Merge "sal role service and role injection"
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / OpenFlowPluginProvider.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow;
10
11 import java.util.Collection;
12 import org.opendaylight.controller.md.sal.binding.api.BindingService;
13 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
14 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
15 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
16 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
17 import org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider;
18
19 /**
20  * Created by Martin Bobak <mbobak@cisco.com> on 27.3.2015.
21  */
22 public interface OpenFlowPluginProvider extends AutoCloseable, BindingService {
23
24     /**
25      * Method sets openflow java's connection providers.
26      */
27     void setSwitchConnectionProviders(Collection<SwitchConnectionProvider> switchConnectionProvider);
28
29     /**
30      * setter
31      *
32      * @param dataBroker
33      */
34     void setDataBroker(DataBroker dataBroker);
35
36     void setRpcProviderRegistry(RpcProviderRegistry rpcProviderRegistry);
37
38     void setNotificationProviderService(NotificationService notificationProviderService);
39
40     void setNotificationPublishService(NotificationPublishService notificationPublishService);
41
42     /**
43      * Method initializes all DeviceManager, RpcManager and related contexts.
44      */
45     void initialize();
46
47     /**
48      * This parameter indicates whether it is mandatory for switch to support OF1.3 features : table, flow, meter,group.
49      * If this is set to true and switch doesn't support these features its connection will be denied.
50      * @param switchFeaturesMandatory
51      */
52     void setSwitchFeaturesMandatory(final boolean switchFeaturesMandatory);
53
54     boolean isSwitchFeaturesMandatory();
55
56     boolean isStatisticsPollingOff();
57
58     void setIsStatisticsPollingOff(final boolean isStatisticsPollingOff);
59
60     }