added yang file describing openflowplugin-impl as CoSS module
[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 org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
12 import org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.api.types.rev150327.OfpRole;
14 import java.util.Collection;
15
16 /**
17  * Created by Martin Bobak <mbobak@cisco.com> on 27.3.2015.
18  */
19 public interface OpenFlowPluginProvider extends AutoCloseable {
20
21
22     public void onSessionInitiated(BindingAwareBroker.ProviderContext session);
23
24     /**
25      * Method sets openflow java's connection providers.
26      */
27     public void setSwitchConnectionProviders(Collection<SwitchConnectionProvider> switchConnectionProvider);
28
29
30     /**
31      * Method sets role of this application in clustered environment.
32      */
33     public void setRole(OfpRole role);
34
35     /**
36      * Method initializes all DeviceManager, RpcManager and related contexts.
37      */
38     public void initialize();
39
40 }