public class ElanClusterUtils extends Object
Constructor and Description |
---|
ElanClusterUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
asyncReadAndExecute(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> iid,
String jobKey,
Function<com.google.common.base.Optional<T>,Void> function) |
static void |
runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
Runnable job) |
static void |
runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
Runnable job,
String jobDescription) |
static void |
runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
String jobKey,
Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> dataStoreJob) |
static void |
runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
String jobKey,
String jobDescription,
Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> dataStoreJob) |
public static void runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService, Runnable job)
public static void runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService, Runnable job, String jobDescription)
public static void runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService, String jobKey, Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> dataStoreJob)
public static void runOnlyInLeaderNode(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService, String jobKey, String jobDescription, Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> dataStoreJob)
public static <T extends org.opendaylight.yangtools.yang.binding.DataObject> void asyncReadAndExecute(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> iid, String jobKey, Function<com.google.common.base.Optional<T>,Void> function)
Copyright © 2018 OpenDaylight. All rights reserved.