Class 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<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>>> job)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElanClusterUtils

        @Inject
        public ElanClusterUtils​(org.opendaylight.genius.utils.clustering.EntityOwnershipUtils entityOwnershipUtils,
                                org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator)
    • 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<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>>> job)