* @param epName endpoint name
* @return loadbalance endpoint data
* @throws Exception incase of an error
*/
public LoadBalanceEndpointData getLoadBalanceEndpoint(String epName) throws Exception {
LoadBalanceEndpointData data = new LoadBalanceEndpointData();
try {
org.wso2.carbon.endpoint.stub.types.common.to.LoadBalanceEndpointData tempData
= stub.getLoadBalanceData(epName);
data.setSessionTimeout(tempData.getSessionTimeout());
data.setSessiontype(tempData.getSessiontype());
data.setProperties(tempData.getProperties());
} catch (Exception e) {
handleFault(e);
}
return data;
}