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 AutoCloseable
Exception
public void onBecomeOwner(@Nonnull DeviceInfo deviceInfo)
MastershipChangeService
OwnershipChangeListener.becomeMaster(DeviceInfo)
onBecomeOwner
in interface MastershipChangeService
deviceInfo
- connected switch identificationpublic void onLoseOwnership(@Nonnull DeviceInfo deviceInfo)
MastershipChangeService
OwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)
onLoseOwnership
in interface MastershipChangeService
deviceInfo
- connected switch identificationCopyright © 2018 OpenDaylight. All rights reserved.