public class DeviceMastership extends Object implements org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, AutoCloseable
Constructor and Description |
---|
DeviceMastership(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
void |
instantiateServiceInstance() |
boolean |
isDeviceMastered() |
void |
reconcile() |
void |
setDeviceOperationalStatus(boolean inOperDS) |
public DeviceMastership(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
public void instantiateServiceInstance()
instantiateServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
public void close()
close
in interface AutoCloseable
public boolean isDeviceMastered()
public void setDeviceOperationalStatus(boolean inOperDS)
public void reconcile()
Copyright © 2018 OpenDaylight. All rights reserved.