Interface ContextChainHolder
-
- All Superinterfaces:
AutoCloseable
,ContextChainMastershipWatcher
,DeviceConnectedHandler
,DeviceDisconnectedHandler
,DeviceRemovedHandler
,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
,org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipListener<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange>
- 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:
StatisticsContext
,RpcContext
,DeviceContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends OFPManager>
voidaddManager(T manager)
Managers need to be added before.void
close()
ContextChain
getContextChain(DeviceInfo deviceInfo)
Return theContextChain
for a givenDeviceInfo
.-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.lifecycle.ContextChainMastershipWatcher
onMasterRoleAcquired, onNotAbleToStartMastership, onNotAbleToStartMastershipMandatory, onSlaveRoleAcquired, onSlaveRoleNotAcquired
-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceConnectedHandler
deviceConnected
-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceDisconnectedHandler
onDeviceDisconnected
-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.device.handlers.DeviceRemovedHandler
onDeviceRemoved
-
-
-
-
Method Detail
-
addManager
<T extends OFPManager> void addManager(T manager)
- Type Parameters:
T
-OFPManager
- Parameters:
manager
- a child class ofOFPManager
-
getContextChain
ContextChain getContextChain(DeviceInfo deviceInfo)
Return theContextChain
for a givenDeviceInfo
.- Returns:
ContextChain
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-