L2gateway: Added yang, APIs,Transcriber for L2gateway.
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronLoadBalancerPoolCRUD.java
index b2585050b1e2c9c6aefc604c046b5ddeec3ac8a4..bbaf8d33ea441298f645e94471cbdfe257448e6b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -15,7 +15,8 @@ import java.util.List;
  *
  */
 
-public interface INeutronLoadBalancerPoolCRUD {
+public interface INeutronLoadBalancerPoolCRUD
+    extends INeutronCRUD<NeutronLoadBalancerPool> {
     /**
      * Applications call this interface method to determine if a particular
      *LoadBalancerPool object exists
@@ -25,7 +26,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      * @return boolean
      */
 
-    public boolean neutronLoadBalancerPoolExists(String uuid);
+    boolean neutronLoadBalancerPoolExists(String uuid);
 
     /**
      * Applications call this interface method to return if a particular
@@ -37,7 +38,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      *          OpenStackLoadBalancerPool class
      */
 
-    public NeutronLoadBalancerPool getNeutronLoadBalancerPool(String uuid);
+    NeutronLoadBalancerPool getNeutronLoadBalancerPool(String uuid);
 
     /**
      * Applications call this interface method to return all LoadBalancerPool objects
@@ -45,7 +46,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      * @return List of OpenStackNetworks objects
      */
 
-    public List<NeutronLoadBalancerPool> getAllNeutronLoadBalancerPools();
+    List<NeutronLoadBalancerPool> getAllNeutronLoadBalancerPools();
 
     /**
      * Applications call this interface method to add a LoadBalancerPool object to the
@@ -56,7 +57,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      * @return boolean on whether the object was added or not
      */
 
-    public boolean addNeutronLoadBalancerPool(NeutronLoadBalancerPool input);
+    boolean addNeutronLoadBalancerPool(NeutronLoadBalancerPool input);
 
     /**
      * Applications call this interface method to remove a Neutron LoadBalancerPool object to the
@@ -67,7 +68,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      * @return boolean on whether the object was removed or not
      */
 
-    public boolean removeNeutronLoadBalancerPool(String uuid);
+    boolean removeNeutronLoadBalancerPool(String uuid);
 
     /**
      * Applications call this interface method to edit a LoadBalancerPool object
@@ -79,7 +80,7 @@ public interface INeutronLoadBalancerPoolCRUD {
      * @return boolean on whether the object was updated or not
      */
 
-    public boolean updateNeutronLoadBalancerPool(String uuid, NeutronLoadBalancerPool delta);
+    boolean updateNeutronLoadBalancerPool(String uuid, NeutronLoadBalancerPool delta);
 
     /**
      * Applications call this interface method to see if a MAC address is in use
@@ -90,6 +91,95 @@ public interface INeutronLoadBalancerPoolCRUD {
      * port or not
      */
 
-    public boolean neutronLoadBalancerPoolInUse(String uuid);
+    boolean neutronLoadBalancerPoolInUse(String uuid);
 
+    /**
+     * Applications call this interface method to determine if a particular
+     *NeutronLoadBalancerPoolMember object exists
+     *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
+     * @param uuid
+     *            UUID of the NeutronLoadBalancerPoolMember object
+     * @return boolean
+     */
+
+    boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid);
+
+    /**
+     * Applications call this interface method to return if a particular
+     * NeutronLoadBalancerPoolMember object exists
+     *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
+     * @param uuid
+     *            UUID of the NeutronLoadBalancerPoolMember object
+     * @return {@link org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember}
+     *          OpenStackNeutronLoadBalancerPoolMember class
+     */
+
+    NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
+
+    /**
+     * Applications call this interface method to return all NeutronLoadBalancerPoolMember objects
+     *
+     * @param poolUuid
+     *            UUID of the NeutronLoadBalancerPool object
+     * @return List of OpenStackNetworks objects
+     */
+
+    List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid);
+
+    /**
+     * 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
+     */
+
+    boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input);
+
+    /**
+     * 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 NeutronLoadBalancerPoolMember object
+     * @return boolean on whether the object was removed or not
+     */
+
+    boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
+
+    /**
+     * Applications call this interface method to edit a NeutronLoadBalancerPoolMember object
+     *
+     * @param poolUuid
+     *            identifier of the NeutronLoadBalancerPool object
+     * @param uuid
+     *            identifier of the NeutronLoadBalancerPoolMember object
+     * @param delta
+     *            OpenStackNeutronLoadBalancerPoolMember object containing changes to apply
+     * @return boolean on whether the object was updated or not
+     */
+
+    boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta);
+
+    /**
+     * 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 NeutronLoadBalancerPoolMember object
+     * @return boolean on whether the macAddress is already associated with a
+     * port or not
+     */
+
+    boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String uuid);
 }