Package org.apache.stratos.cloud.controller.stub.pojo

Examples of org.apache.stratos.cloud.controller.stub.pojo.ClusterContext


                log.debug("Set existing default LB cluster id " + clusterId);
            }
            defaultLBExists = true;

            //get the hostname for this cluster and set it
            ClusterContext clusterContext;
            try {
                clusterContext = CloudControllerServiceClient.getServiceClient().getClusterContext(clusterId);

            } catch (RemoteException e) {
                log.error("Error occurred in retrieving Cluster Context for default LB ", e);
                throw new ADCException(e);
            }

            if (clusterContext != null) {
                cluster.setHostName(clusterContext.getHostName());
                if (log.isDebugEnabled()) {
                    log.debug("Set existing default LB hostname " + clusterContext.getHostName());
                }
            }
        
            return null;
View Full Code Here


                log.debug("Set existing Service LB cluster id " + clusterId);
            }
            serviceLbExists = true;

            //get the hostname for this cluster and set it
            ClusterContext clusterContext;
            try {
                clusterContext = CloudControllerServiceClient.getServiceClient().getClusterContext(clusterId);

            } catch (RemoteException e) {
                log.error("Error occurred in retrieving Cluster Context for Service LB ", e);
                throw new ADCException(e);
            }

            if (clusterContext != null) {
                cluster.setHostName(clusterContext.getHostName());
                if (log.isDebugEnabled()) {
                    log.debug("Set existing Service LB hostname " + clusterContext.getHostName());
                }
            }

            return null;
View Full Code Here

TOP

Related Classes of org.apache.stratos.cloud.controller.stub.pojo.ClusterContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.