public interface ContextChainMastershipWatcher
Modifier and Type | Method and Description |
---|---|
void |
onMasterRoleAcquired(DeviceInfo deviceInfo,
ContextChainMastershipState mastershipState)
Changed to MASTER role on device.
|
void |
onNotAbleToStartMastership(DeviceInfo deviceInfo,
String reason,
boolean mandatory)
Event occurs if there was a try to acquire MASTER role.
|
default void |
onNotAbleToStartMastershipMandatory(DeviceInfo deviceInfo,
String reason)
Event occurs if there was a try to acquire MASTER role.
|
void |
onSlaveRoleAcquired(DeviceInfo deviceInfo)
Change to SLAVE role on device was successful.
|
void |
onSlaveRoleNotAcquired(DeviceInfo deviceInfo,
String reason)
Change to SLAVE role on device was not able.
|
void onNotAbleToStartMastership(DeviceInfo deviceInfo, String reason, boolean mandatory)
deviceInfo
- connected switch identificationreason
- reasonmandatory
- if it is mandatory connection will be droppeddefault void onNotAbleToStartMastershipMandatory(DeviceInfo deviceInfo, String reason)
deviceInfo
- connected switch identificationreason
- reasonvoid onMasterRoleAcquired(DeviceInfo deviceInfo, @Nonnull ContextChainMastershipState mastershipState)
deviceInfo
- connected switch identificationmastershipState
- statevoid onSlaveRoleAcquired(DeviceInfo deviceInfo)
deviceInfo
- connected switch identificationvoid onSlaveRoleNotAcquired(DeviceInfo deviceInfo, String reason)
deviceInfo
- connected switch identificationreason
- reasonCopyright © 2020 OpenDaylight. All rights reserved.