/*
 * 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 LoadBalancerListener {
    public void setInstancePort(int instancePort);
    public void setServicePort(int servciePort);
    public Integer getInstancePort();
    public Integer getServicePort();
    public void setInstanceProtocol(String instanceProtocol);
    public void setServiceProtocol(String serviceProtocol);
    public String getInstanceProtocol();
    public String getServiceProtocol();
    public void setServerCertificate(String serverCertificateId);
    public String getServerCertificate();
    public LoadBalancer getLoadBalancer();
    
   /*
    * Add this load balancer listener to load balancer.
    */
    public void addTo(LoadBalancer lb);
    
   /*
    * Delete this load balancer listener from load balancer, and return the load balancer instance.
    * If this listener is not attached to any load balancer, return null.
    */
    public LoadBalancer delete();
}

@@ -864,16 +864,26 @@
 ener to 
+specified 
 load bal
@@ -993,16 +993,26 @@
 er from 
+specified 
 load bal
@@ -1020,121 +1020,8 @@
 ncer
-, and return the load balancer instance.%0A    * If this listener is not attached to any load balancer, return null
 .%0A  
@@ -1028,32 +1028,48 @@
   */%0A    public 
+void deleteFrom(
 LoadBalancer del
@@ -1069,15 +1069,10 @@
 cer 
-delete(
+lb
 );%0A%7D

Update LoadBalancerListener.java