public interface ContextChain extends org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, AutoCloseable, ReconciliationFrameworkStep
Modifier and Type | Method and Description |
---|---|
boolean |
addAuxiliaryConnection(ConnectionContext connectionContext)
Add new auxiliary connection if primary is ok.
|
<T extends OFPContext> |
addContext(T context)
Add context to the chain, if reference already exist ignore it.
|
boolean |
auxiliaryConnectionDropped(ConnectionContext connectionContext)
Check if connection is auxiliary and if yes then continue working.
|
void |
close() |
boolean |
isClosing()
Checks if context chain is currently closing.
|
boolean |
isMastered(ContextChainMastershipState mastershipState,
boolean inReconciliationFrameworkStep)
Check all needed to be master.
|
void |
makeContextChainStateSlave()
Slave was successfully set.
|
void |
registerDeviceRemovedHandler(DeviceRemovedHandler deviceRemovedHandler)
This method registers device removed handler what will be executed when device should be removed.
|
void |
registerServices(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonServiceProvider)
Registers context chain into cluster singleton service.
|
closeServiceInstance, instantiateServiceInstance
continueInitializationAfterReconciliation
<T extends OFPContext> void addContext(@Nonnull T context)
context
- child of OFPContextvoid close()
close
in interface AutoCloseable
void makeContextChainStateSlave()
void registerServices(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonServiceProvider)
clusterSingletonServiceProvider
- providerboolean isMastered(@Nonnull ContextChainMastershipState mastershipState, boolean inReconciliationFrameworkStep)
mastershipState
- state master on device, initial gather, initial submit, initial registry fillinReconciliationFrameworkStep
- if true, check all needed to be master except the device is written
into data store. Using by reconciliation framework. Used only if
ReconciliationFrameworkRegistrar.isReconciliationFrameworkRegistered()
is
set to true.MastershipChangeService
boolean isClosing()
boolean addAuxiliaryConnection(@Nonnull ConnectionContext connectionContext)
connectionContext
- new connection to the device.boolean auxiliaryConnectionDropped(@Nonnull ConnectionContext connectionContext)
connectionContext
- connection to the devicevoid registerDeviceRemovedHandler(@Nonnull DeviceRemovedHandler deviceRemovedHandler)
deviceRemovedHandler
- device removed handlerCopyright © 2018 OpenDaylight. All rights reserved.