Examples of CartridgeAgentException


Examples of org.apache.stratos.cartridge.agent.exception.CartridgeAgentException

            this.conf = conf;
            joinLoadBalancer(configurationContext, membershipListener);
        } catch (Exception e) {
            String msg = "Cannot initialize ClusteringClient";
            log.error(msg, e);
            throw new CartridgeAgentException(msg, e);
        }
    }
View Full Code Here

Examples of org.apache.stratos.cartridge.agent.exception.CartridgeAgentException

            ((TribesClusteringAgent) loadBalancerAgent).setMembershipListeners(membershipListeners);
            loadBalancerAgent.init();
        } catch (Exception e) {
            String msg = "Cannot join LB group";
            log.error(msg, e);
            throw new CartridgeAgentException(msg, e);
        }
    }
View Full Code Here

Examples of org.apache.stratos.cartridge.agent.exception.CartridgeAgentException

     * @throws CartridgeAgentException If an error occurs while joining a cluster group
     */
    public void joinGroup(Registrant registrant,
                          ConfigurationContext configurationContext) throws CartridgeAgentException {
        if (registrantDatabase.containsActive(registrant)) {
            throw new CartridgeAgentException("Active registrant with key " +
                                              registrant.getKey() + " already exists");
        }
        registrantDatabase.add(registrant);

        if (!RegistrantUtil.isHealthy(registrant)) {
View Full Code Here

Examples of org.apache.stratos.cartridge.agent.exception.CartridgeAgentException

        }
    }

    private void handleException(String msg, Exception e) throws CartridgeAgentException {
        log.error(msg, e);
        throw new CartridgeAgentException(msg, e);
    }
View Full Code Here

Examples of org.apache.stratos.cartridge.agent.exception.CartridgeAgentException

    private List<Registrant> registrants = new CopyOnWriteArrayList<Registrant>();

    public void add(Registrant registrant) throws CartridgeAgentException {
        if (registrants.contains(registrant) && registrant.running()) {
            throw new CartridgeAgentException("Active registrant with key " +
                                              registrant.getKey() + " already exists");
        }
        synchronized (registrant) {
            if (!isAlreadyAdded(registrant)) {
                persist(registrant);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.