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 slaveModifier 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.
|
close
void onBecomeOwner(@Nonnull DeviceInfo deviceInfo)
OwnershipChangeListener.becomeMaster(DeviceInfo)
deviceInfo
- connected switch identificationvoid onLoseOwnership(@Nonnull DeviceInfo deviceInfo)
OwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)
deviceInfo
- connected switch identificationCopyright © 2020 OpenDaylight. All rights reserved.