Class DeviceOwnershipServiceImpl
java.lang.Object
org.opendaylight.openflowplugin.applications.deviceownershipservice.impl.DeviceOwnershipServiceImpl
- All Implemented Interfaces:
- org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener,- org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipListener<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,,- org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange> - DeviceOwnershipService
@Singleton
public class DeviceOwnershipServiceImpl
extends Object
implements DeviceOwnershipService, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
- 
Constructor SummaryConstructorsConstructorDescriptionDeviceOwnershipServiceImpl(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()booleanisEntityOwned(String nodeId) Method is used to check if the node is the entity owner of the switch.voidownershipChanged(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange ownershipChange) voidstart()
- 
Constructor Details- 
DeviceOwnershipServiceImplpublic DeviceOwnershipServiceImpl(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService) 
 
- 
- 
Method Details- 
start@PostConstruct public void start()
- 
close@PreDestroy public void close()
- 
isEntityOwnedDescription copied from interface:DeviceOwnershipServiceMethod is used to check if the node is the entity owner of the switch.- Specified by:
- isEntityOwnedin interface- DeviceOwnershipService
- Returns:
- true if the node is the owner of the switch , false if either the switch is owned by some other node or if the cluster is in Jeopardy
 
- 
ownershipChangedpublic void ownershipChanged(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange ownershipChange) - Specified by:
- ownershipChangedin interface- org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
- Specified by:
- ownershipChangedin interface- org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipListener<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,- org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange> 
 
 
-