public class MastershipServiceDelegate extends Object implements MastershipChangeService, MastershipChangeRegistration
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
onBecomeOwner(DeviceInfo deviceInfo)
Event when device is ready as a master.
|
void |
onLoseOwnership(DeviceInfo deviceInfo)
Event when device disconnected or become slave.
|
String |
toString() |
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic void onBecomeOwner(@Nonnull DeviceInfo deviceInfo)
MastershipChangeServiceOwnershipChangeListener.becomeMaster(DeviceInfo)onBecomeOwner in interface MastershipChangeServicedeviceInfo - connected switch identificationpublic void onLoseOwnership(@Nonnull DeviceInfo deviceInfo)
MastershipChangeServiceOwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)onLoseOwnership in interface MastershipChangeServicedeviceInfo - connected switch identificationCopyright © 2019 OpenDaylight. All rights reserved.