Class AbstractP4RuntimePipelineProgrammable

  • All Implemented Interfaces:
    org.onosproject.net.behaviour.PiPipelineProgrammable, org.onosproject.net.driver.Behaviour, org.onosproject.net.driver.HandlerBehaviour

    public abstract class AbstractP4RuntimePipelineProgrammable
    extends AbstractP4RuntimeHandlerBehaviour
    implements org.onosproject.net.behaviour.PiPipelineProgrammable
    Abstract implementation of the PiPipelineProgrammable behaviours for a P4Runtime device.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log  
      • Fields inherited from class org.onosproject.grpc.utils.AbstractGrpcHandlerBehaviour

        client, deviceId, deviceService
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.nio.ByteBuffer createDeviceDataBuffer​(org.onosproject.net.pi.model.PiPipeconf pipeconf)
      Returns a byte buffer representing the target-specific device data to be used in the SetPipelineConfig message.
      abstract java.util.Optional<org.onosproject.net.pi.model.PiPipeconf> getDefaultPipeconf()  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> isPipeconfSet​(org.onosproject.net.pi.model.PiPipeconf pipeconf)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> setPipeconf​(org.onosproject.net.pi.model.PiPipeconf pipeconf)  
      • Methods inherited from class org.onosproject.grpc.utils.AbstractGrpcHandlerBehaviour

        mgmtUriFromNetcfg
      • Methods inherited from class org.onosproject.net.driver.AbstractHandlerBehaviour

        handler, setHandler
      • Methods inherited from class org.onosproject.net.driver.AbstractBehaviour

        data, setData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.driver.Behaviour

        data, setData
      • Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour

        handler, setHandler
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • AbstractP4RuntimePipelineProgrammable

        public AbstractP4RuntimePipelineProgrammable()
    • Method Detail

      • createDeviceDataBuffer

        public abstract java.nio.ByteBuffer createDeviceDataBuffer​(org.onosproject.net.pi.model.PiPipeconf pipeconf)
        Returns a byte buffer representing the target-specific device data to be used in the SetPipelineConfig message.
        Parameters:
        pipeconf - pipeconf
        Returns:
        byte buffer
      • setPipeconf

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> setPipeconf​(org.onosproject.net.pi.model.PiPipeconf pipeconf)
        Specified by:
        setPipeconf in interface org.onosproject.net.behaviour.PiPipelineProgrammable
      • isPipeconfSet

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> isPipeconfSet​(org.onosproject.net.pi.model.PiPipeconf pipeconf)
        Specified by:
        isPipeconfSet in interface org.onosproject.net.behaviour.PiPipelineProgrammable
      • getDefaultPipeconf

        public abstract java.util.Optional<org.onosproject.net.pi.model.PiPipeconf> getDefaultPipeconf()
        Specified by:
        getDefaultPipeconf in interface org.onosproject.net.behaviour.PiPipelineProgrammable