Class P4RuntimeReplicationGroupProgrammable

  • All Implemented Interfaces:
    org.onosproject.net.driver.Behaviour, org.onosproject.net.driver.HandlerBehaviour, org.onosproject.net.group.GroupProgrammable

    public class P4RuntimeReplicationGroupProgrammable
    extends AbstractP4RuntimeHandlerBehaviour
    implements org.onosproject.net.group.GroupProgrammable
    Implementation of GroupProgrammable to handle PRE entries in P4Runtime.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.onosproject.net.group.Group> getGroups()  
      void performGroupOperation​(org.onosproject.net.DeviceId deviceId, org.onosproject.net.group.GroupOperations groupOps)  
      protected boolean setupBehaviour​(java.lang.String opName)
      Initializes this behaviour attributes.
      • 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
    • Constructor Detail

      • P4RuntimeReplicationGroupProgrammable

        public P4RuntimeReplicationGroupProgrammable()
    • Method Detail

      • setupBehaviour

        protected boolean setupBehaviour​(java.lang.String opName)
        Description copied from class: AbstractP4RuntimeHandlerBehaviour
        Initializes this behaviour attributes. Returns true if the operation was successful, false otherwise.
        Overrides:
        setupBehaviour in class AbstractP4RuntimeHandlerBehaviour
        Parameters:
        opName - name of the operation
        Returns:
        true if successful, false otherwise
      • performGroupOperation

        public void performGroupOperation​(org.onosproject.net.DeviceId deviceId,
                                          org.onosproject.net.group.GroupOperations groupOps)
        Specified by:
        performGroupOperation in interface org.onosproject.net.group.GroupProgrammable
      • getGroups

        public java.util.Collection<org.onosproject.net.group.Group> getGroups()
        Specified by:
        getGroups in interface org.onosproject.net.group.GroupProgrammable