Bug 5596 Cleaning lifecycle conductor
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / lifecycle / LifecycleService.java
index 377be685e26d9c9bc03ab2f3f7f514bc88a307eb..53755179d78d79169533fa7d1a7dd2f67161baa0 100644 (file)
@@ -29,4 +29,16 @@ public interface LifecycleService extends ClusterSingletonService, AutoCloseable
     void setRoleContext(RoleContext roleContext);
 
     void setStatContext(StatisticsContext statContext);
+
+    /**
+     * Some services, contexts etc. still need to have access to device context,
+     * instead to push into them, here is the getter
+     * @return device context for this device
+     */
+    DeviceContext getDeviceContext();
+
+    /**
+     * if some services not started properly need to close connection
+     */
+    void closeConnection();
 }