X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fapi%2Fopenflow%2Fdevice%2FDeviceManager.java;h=3f73661fc1bcf1253cf9883a7f1c2db96601bc6e;hb=d8cc382a8dbdcb7c89b68457b3ae0b6d576ee28f;hp=c18375b064d0e6d4c85c4ada742edcc00921912a;hpb=aa8a8d377220d54d929ca59a5f26147d793e0e00;p=openflowplugin.git diff --git a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java index c18375b064..3f73661fc1 100644 --- a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java +++ b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceManager.java @@ -8,42 +8,31 @@ package org.opendaylight.openflowplugin.api.openflow.device; +import org.opendaylight.openflowplugin.api.openflow.OFPManager; import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler; -import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceContextReadyHandler; -import org.opendaylight.yangtools.yang.binding.DataObject; +import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler; +import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceInitializationPhaseHandler; +import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceLifecycleSupervisor; +import org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceTerminationPhaseHandler; +import org.opendaylight.openflowplugin.api.openflow.translator.TranslatorLibrarian; /** * This interface is responsible for instantiating DeviceContext and * registering transaction chain for each DeviceContext. Each device * has its own device context managed by this manager. - *

- * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015. */ -public interface DeviceManager extends DeviceConnectedHandler { +public interface DeviceManager extends DeviceConnectedHandler, DeviceDisconnectedHandler, DeviceLifecycleSupervisor, + DeviceInitializationPhaseHandler, DeviceTerminationPhaseHandler, TranslatorLibrarian, AutoCloseable, OFPManager { /** - * Method allows to send message that will be using RequestContext - * wrapped by this context. - * - * @param dataObject + * invoked after all services injected */ - void sendMessage(DataObject dataObject, RequestContext requestContext); + void initialize(); - /** - * Method allows to send rpc request that will be using RequestContext - * wrapped by this context. - * - * @param dataObject - */ - Xid sendRequest(DataObject dataObject, RequestContext requestContext); + void setIsNotificationFlowRemovedOff(boolean value); - /** - * Method registers handler responsible for handling operations related to connected device after - * request context is created. - * - * @param deviceContextReadyHandler - */ - public void addRequestContextReadyHandler(DeviceContextReadyHandler deviceContextReadyHandler); + boolean getIsNotificationFlowRemovedOff(); } +