Class RDUtilsImpl

  • All Implemented Interfaces:
    RDUtils

    @Singleton
    public class RDUtilsImpl
    extends java.lang.Object
    implements RDUtils
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String convertIdValuetoRD​(long idValue)  
      java.lang.String getRD​(java.lang.String rdKey)  
      java.util.Optional<IdPool> getRDPool()  
      void releaseRD​(java.lang.String rdKey)  
      • Methods inherited from class java.lang.Object

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

      • RDUtilsImpl

        @Inject
        public RDUtilsImpl​(NetworkConfig networkConfig,
                           IdManagerService idManagerService,
                           org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
                    throws java.lang.InterruptedException,
                           java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
    • Method Detail

      • convertIdValuetoRD

        public java.lang.String convertIdValuetoRD​(long idValue)
      • getRD

        public java.lang.String getRD​(java.lang.String rdKey)
                               throws java.util.concurrent.ExecutionException,
                                      java.lang.InterruptedException
        Specified by:
        getRD in interface RDUtils
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • releaseRD

        public void releaseRD​(java.lang.String rdKey)
                       throws java.util.concurrent.ExecutionException,
                              java.lang.InterruptedException
        Specified by:
        releaseRD in interface RDUtils
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getRDPool

        public java.util.Optional<IdPool> getRDPool()
                                             throws java.util.concurrent.ExecutionException,
                                                    java.lang.InterruptedException
        Specified by:
        getRDPool in interface RDUtils
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException