/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package web.component.api.model;

/**
 *
 * @author Hiroshi
 */
public interface BackendInstance {
    
    /**
     * Returns instance of load balancer with which this backend instance is registered.
     * If this backend instance is not registered with any load balancer, this method returns null.
     * @return instance of LoadBalancer or null.
     */
    public LoadBalancer getLoadBalancer();
    public String getId();
    public void register(LoadBalancer lb);
    
    /*
    * If this backend instance has already been registered with any load balancer,
    * deregister from it and return the instance of the load balancer.
    * If failed to deregister or not been registered, return null.
    */
    public LoadBalancer deregister();
    public BackendInstanceState getBackendInstanceState();
}

@@ -584,90 +584,112 @@
 ();%0A
+%0A
     
-public String getId();%0A    public void register(LoadB
+/**%0A     * Returns List of all the load b
 alancer
- lb);%0A    %0A    /*%0A
+s with which this backend instance is registered.%0A 
     
@@ -719,24 +719,14 @@
 nce 
-has already been
+is not
  reg
@@ -760,145 +760,427 @@
 cer,
-%0A    * deregister from it and return the instance of the load balancer.%0A    * If failed to deregister or not been registered, return null
+ this method returns empty list.%0A     * @return list of load balacers with which this backend instance is registered.%0A     */%0A    public List%3CLoadBalancer%3E getLoadBalancers();%0A    public String getId();%0A%0A    /*%0A    * Register this backend instance with the specified load balancer.%0A    */%0A    public void registerWith(LoadBalancer lb);%0A    %0A    /*%0A    * Deregister this backend instance from the specified load balancer
 .%0A  
@@ -1218,17 +1218,36 @@
 register
-(
+From(LoadBalancer lb
 );%0A    p

Update BackendInstance.java