Class MastershipServiceDelegate
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.impl.mastership.MastershipServiceDelegate
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,MastershipChangeRegistration,MastershipChangeService
public class MastershipServiceDelegate extends Object implements MastershipChangeService, MastershipChangeRegistration
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidonBecomeOwner(@NonNull DeviceInfo deviceInfo)Event when device is ready as a master.voidonLoseOwnership(@NonNull DeviceInfo deviceInfo)Event when device disconnected or become slave.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
close
public void close() throws Exception- Specified by:
 closein interfaceAutoCloseable- Throws:
 Exception
 
- 
onBecomeOwner
public void onBecomeOwner(@NonNull DeviceInfo deviceInfo)
Description copied from interface:MastershipChangeServiceEvent when device is ready as a master. This event is evoked byOwnershipChangeListener.becomeMaster(DeviceInfo)- Specified by:
 onBecomeOwnerin interfaceMastershipChangeService- Parameters:
 deviceInfo- connected switch identification
 
- 
onLoseOwnership
public void onLoseOwnership(@NonNull DeviceInfo deviceInfo)
Description copied from interface:MastershipChangeServiceEvent when device disconnected or become slave. This event is evoked byOwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)- Specified by:
 onLoseOwnershipin interfaceMastershipChangeService- Parameters:
 deviceInfo- connected switch identification
 
 - 
 
 -