Class ResourceHelper


  • @Beta
    public final class ResourceHelper
    extends java.lang.Object
    Helper class for ResourceService related processes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<org.onosproject.net.intent.IntentId> getIntentId​(org.onosproject.net.resource.ResourceConsumerId consumerId)
      Creates IntentId object from given consumer ID.
      • Methods inherited from class java.lang.Object

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

      • getIntentId

        public static java.util.Optional<org.onosproject.net.intent.IntentId> getIntentId​(org.onosproject.net.resource.ResourceConsumerId consumerId)
        Creates IntentId object from given consumer ID.
        Parameters:
        consumerId - ConsumerId object
        Returns:
        Created IntentId object. null if failed to create or given consumer is not instance of IntentId.