Switch to MD-SAL APIs
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / OpenFlowPluginProvider.java
index 3368056332145ead91f940397ea35a495e334b15..94519348f95a767fc7e58c3ed4e4c4634393d730 100644 (file)
@@ -1,40 +1,22 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.openflowplugin.api.openflow;
 
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
-import org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.api.types.rev150327.OfpRole;
-import java.util.Collection;
+import org.opendaylight.mdsal.binding.api.BindingService;
 
 /**
- * Created by Martin Bobak <mbobak@cisco.com> on 27.3.2015.
+ * Plugin services provider.
  */
-public interface OpenFlowPluginProvider extends AutoCloseable {
-
-
-    public void onSessionInitiated(BindingAwareBroker.ProviderContext session);
-
-    /**
-     * Method sets openflow java's connection providers.
-     */
-    public void setSwitchConnectionProviders(Collection<SwitchConnectionProvider> switchConnectionProvider);
-
-
-    /**
-     * Method sets role of this application in clustered environment.
-     */
-    public void setRole(OfpRole role);
+public interface OpenFlowPluginProvider extends AutoCloseable, BindingService {
 
     /**
      * Method initializes all DeviceManager, RpcManager and related contexts.
      */
-    public void initialize();
+    void initialize();
 
 }