public interface MastershipChangeService extends AutoCloseable
onBecomeOwner(DeviceInfo) is called when device is fully mastered by controlleronLoseOwnership(DeviceInfo)
is called when device is disconnected or is being to be slave| Modifier and Type | Method and Description |
|---|---|
void |
onBecomeOwner(DeviceInfo deviceInfo)
Event when device is ready as a master.
|
void |
onLoseOwnership(DeviceInfo deviceInfo)
Event when device disconnected or become slave.
|
closevoid onBecomeOwner(@Nonnull DeviceInfo deviceInfo)
OwnershipChangeListener.becomeMaster(DeviceInfo)deviceInfo - connected switch identificationvoid onLoseOwnership(@Nonnull DeviceInfo deviceInfo)
OwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)deviceInfo - connected switch identificationCopyright © 2019 OpenDaylight. All rights reserved.