Merge "Bug 6110: Fixed bugs in statistics manager due to race condition." into stable...
[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 java.util.Map;
13 import org.opendaylight.controller.md.sal.binding.api.BindingService;
14 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
15 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
16 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
17 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService;
18 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
19 import org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider;
20 import org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider;
21
22 /**
23  * Plugin services provider
24  */
25 public interface OpenFlowPluginProvider extends AutoCloseable, BindingService {
26
27     /**
28      * Method sets openflow java's connection providers.
29      */
30     void setSwitchConnectionProviders(Collection<SwitchConnectionProvider> switchConnectionProvider);
31
32     /**
33      * setter
34      *
35      * @param dataBroker
36      */
37     void setDataBroker(DataBroker dataBroker);
38
39     void setRpcProviderRegistry(RpcProviderRegistry rpcProviderRegistry);
40
41     void setNotificationProviderService(NotificationService notificationProviderService);
42
43     void setNotificationPublishService(NotificationPublishService notificationPublishService);
44
45     void setClusteringSingletonServicesProvider(ClusterSingletonServiceProvider singletonServicesProvider);
46
47     void setEntityOwnershipServiceProvider(EntityOwnershipService entityOwnershipService);
48     /**
49      * Method initializes all DeviceManager, RpcManager and related contexts.
50      */
51     void initialize();
52
53     /**
54      * This parameter indicates whether it is mandatory for switch to support OF1.3 features : table, flow, meter,group.
55      * If this is set to true and switch doesn't support these features its connection will be denied.
56      * @param switchFeaturesMandatory
57      */
58     void setSwitchFeaturesMandatory(final boolean switchFeaturesMandatory);
59
60     boolean isSwitchFeaturesMandatory();
61
62     boolean isStatisticsPollingOn();
63
64     void setStatisticsPollingOn(final boolean isStatisticsPollingOn);
65
66     /**
67      * Backward compatibility feature - exposing rpc for statistics polling (result is provided in form of async notification)
68      *
69      * @param isStatisticsRpcEnabled
70      */
71     void setIsStatisticsRpcEnabled(boolean isStatisticsRpcEnabled);
72
73     void setBarrierCountLimit(int barrierCountLimit);
74
75     void setBarrierInterval(long barrierTimeoutLimit);
76
77     void setEchoReplyTimeout(long echoReplyTimeout);
78
79     void setFlowRemovedNotification(boolean isFlowRemovedNotificationOn);
80
81     void update(Map<String,Object> props);
82
83     void setSkipTableFeatures(boolean skipTableFeatures);
84
85     void setBasicTimerDelay(long basicTimerDelay);
86
87     void setMaximumTimerDelay(long maximumTimerDelay);
88 }