Interface ContextChainHolder
- All Superinterfaces:
AutoCloseable,ContextChainMastershipWatcher,DeviceConnectedHandler,DeviceDisconnectedHandler,DeviceRemovedHandler,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
- All Known Implementing Classes:
ContextChainHolderImpl
public interface ContextChainHolder
extends DeviceConnectedHandler, ContextChainMastershipWatcher, DeviceDisconnectedHandler, DeviceRemovedHandler, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener, AutoCloseable
Generic interface for context chain holder, hold all created context chains.
ContextChain is context that suppose to hold old information about device such as
Each context is created right after device connect and hold information about particular part of device.- Since:
- 0.4.0 Carbon
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends OFPManager>
voidaddManager(T manager) Managers need to be added before.voidclose()getContextChain(DeviceInfo deviceInfo) Return theContextChainfor a givenDeviceInfo.Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.lifecycle.ContextChainMastershipWatcher
onMasterRoleAcquired, onNotAbleToStartMastership, onNotAbleToStartMastershipMandatory, onSlaveRoleAcquired, onSlaveRoleNotAcquiredMethods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler
deviceConnectedMethods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler
onDeviceDisconnectedMethods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceRemovedHandler
onDeviceRemovedMethods inherited from interface org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
ownershipChanged
-
Method Details
-
addManager
- Type Parameters:
T-OFPManager- Parameters:
manager- a child class ofOFPManager
-
getContextChain
Return theContextChainfor a givenDeviceInfo.- Returns:
ContextChain
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-