2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.openflowplugin.api.openflow;
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 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.api.types.rev150327.OfpRole;
21 * Created by Martin Bobak <mbobak@cisco.com> on 27.3.2015.
23 public interface OpenFlowPluginProvider extends AutoCloseable, BindingService {
26 * Method sets openflow java's connection providers.
28 void setSwitchConnectionProviders(Collection<SwitchConnectionProvider> switchConnectionProvider);
35 void setDataBroker(DataBroker dataBroker);
37 void setRpcProviderRegistry(RpcProviderRegistry rpcProviderRegistry);
39 void setNotificationProviderService(NotificationService notificationProviderService);
41 void setNotificationPublishService(NotificationPublishService notificationPublishService);
44 * Method sets role of this application in clustered environment.
46 void setRole(OfpRole role);
49 * Method initializes all DeviceManager, RpcManager and related contexts.
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
58 void setSwitchFeaturesMandatory(final boolean switchFeaturesMandatory);
60 boolean isSwitchFeaturesMandatory();
62 boolean isStatisticsPollingOff();
64 void setIsStatisticsPollingOff(final boolean isStatisticsPollingOff);