Bump upstreams for Silicon
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronLoadBalancerPoolCRUD.java
index 98ec93462d4b01b22a998fb555b7945a2815026f..bc51540fa6c2457bed9df8dc010ea945cb2cc134 100644 (file)
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.neutron.spi;
 
 import java.util.List;
+import org.opendaylight.mdsal.common.api.ReadFailedException;
+import org.opendaylight.yangtools.yang.common.OperationFailedException;
 
 /**
- * This interface defines the methods for CRUD of NB OpenStack LoadBalancerPool objects
- *
+ * This interface defines the methods for CRUD of NB OpenStack LoadBalancerPool objects.
  */
+public interface INeutronLoadBalancerPoolCRUD extends INeutronCRUD<NeutronLoadBalancerPool> {
 
-public interface INeutronLoadBalancerPoolCRUD {
     /**
      * Applications call this interface method to determine if a particular
-     *LoadBalancerPool object exists
+     * NeutronLoadBalancerPoolMember object exists.
      *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
      * @param uuid
-     *            UUID of the LoadBalancerPool object
+     *            UUID of the NeutronLoadBalancerPoolMember object
      * @return boolean
+     * @throws ReadFailedException if the read failed
      */
-
-    public boolean neutronLoadBalancerPoolExists(String uuid);
+    boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid) throws ReadFailedException;
 
     /**
      * Applications call this interface method to return if a particular
-     * LoadBalancerPool object exists
+     * NeutronLoadBalancerPoolMember object exists.
      *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
      * @param uuid
-     *            UUID of the LoadBalancerPool object
-     * @return {@link NeutronLoadBalancerPool}
-     *          OpenStackLoadBalancerPool class
+     *            UUID of the NeutronLoadBalancerPoolMember object
+     * @return {@link org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember}
+     *          OpenStackNeutronLoadBalancerPoolMember class
+     * @throws ReadFailedException if the read failed
      */
-
-    public NeutronLoadBalancerPool getNeutronLoadBalancerPool(String uuid);
+    NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid)
+            throws ReadFailedException;
 
     /**
-     * Applications call this interface method to return all LoadBalancerPool objects
+     * Applications call this interface method to return all NeutronLoadBalancerPoolMember objects.
      *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
      * @return List of OpenStackNetworks objects
+     * @throws ReadFailedException if the read failed
      */
-
-    public List<NeutronLoadBalancerPool> getAllNeutronLoadBalancerPools();
+    List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid)
+            throws ReadFailedException;
 
     /**
-     * Applications call this interface method to add a LoadBalancerPool object to the
-     * concurrent map
+     * Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the
+     * concurrent map.
      *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
      * @param input
      *            OpenStackNetwork object
      * @return boolean on whether the object was added or not
+     * @throws OperationFailedException if the read or write failed
      */
-
-    public boolean addNeutronLoadBalancerPool(NeutronLoadBalancerPool input);
+    boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input)
+            throws OperationFailedException;
 
     /**
-     * Applications call this interface method to remove a Neutron LoadBalancerPool object to the
-     * concurrent map
+     * Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the
+     * concurrent map.
      *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
      * @param uuid
-     *            identifier for the LoadBalancerPool object
+     *            identifier for the NeutronLoadBalancerPoolMember object
      * @return boolean on whether the object was removed or not
+     * @throws OperationFailedException if the read or write failed
      */
-
-    public boolean removeNeutronLoadBalancerPool(String uuid);
+    boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid) throws OperationFailedException;
 
     /**
-     * Applications call this interface method to edit a LoadBalancerPool object
+     * Applications call this interface method to edit a NeutronLoadBalancerPoolMember object.
      *
+     * @param poolUuid
+     *            identifier of the NeutronLoadBalancerPool object
      * @param uuid
-     *            identifier of the LoadBalancerPool object
+     *            identifier of the NeutronLoadBalancerPoolMember object
      * @param delta
-     *            OpenStackLoadBalancerPool object containing changes to apply
+     *            OpenStackNeutronLoadBalancerPoolMember object containing changes to apply
      * @return boolean on whether the object was updated or not
+     * @throws OperationFailedException if the read or write operation failed
      */
-
-    public boolean updateNeutronLoadBalancerPool(String uuid, NeutronLoadBalancerPool delta);
+    boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta)
+            throws OperationFailedException;
 
     /**
-     * Applications call this interface method to see if a MAC address is in use
+     * Applications call this interface method to see if a MAC address is in use.
      *
+     * @param poolUuid
+     *            identifier of the NeutronLoadBalancerPool object
      * @param uuid
-     *            identifier of the LoadBalancerPool object
+     *            identifier of the NeutronLoadBalancerPoolMember object
      * @return boolean on whether the macAddress is already associated with a
-     * port or not
+     *             port or not
+     * @throws ReadFailedException if the read operation failed
      */
-
-    public boolean neutronLoadBalancerPoolInUse(String uuid);
-
+    boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String uuid) throws ReadFailedException;
 }