Class RDUtilsImpl

  • All Implemented Interfaces:
    RDUtils

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

      Constructors 
      Constructor Description
      RDUtilsImpl​(NetworkConfig networkConfig, IdManagerService idManagerService, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
    • 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)  
      com.google.common.base.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.controller.md.sal.binding.api.DataBroker dataBroker)
                    throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
    • 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 com.google.common.base.Optional<IdPool> getRDPool()
                                                          throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Specified by:
        getRDPool in interface RDUtils
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException