Class ElanClusterUtils
- java.lang.Object
-
- org.opendaylight.netvirt.elan.utils.ElanClusterUtils
-
@Singleton public final class ElanClusterUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ElanClusterUtils(org.opendaylight.genius.utils.clustering.EntityOwnershipUtils entityOwnershipUtils, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runOnlyInOwnerNode(java.lang.String jobDesc, java.lang.Runnable job)
void
runOnlyInOwnerNode(java.lang.String jobKey, java.lang.String jobDesc, java.util.concurrent.Callable<java.util.List<? extends com.google.common.util.concurrent.ListenableFuture<?>>> job)
-
-
-
Method Detail
-
runOnlyInOwnerNode
public void runOnlyInOwnerNode(java.lang.String jobDesc, java.lang.Runnable job)
-
runOnlyInOwnerNode
public void runOnlyInOwnerNode(java.lang.String jobKey, java.lang.String jobDesc, java.util.concurrent.Callable<java.util.List<? extends com.google.common.util.concurrent.ListenableFuture<?>>> job)
-
-