Package org.apache.stratos.cartridge.agent

Examples of org.apache.stratos.cartridge.agent.InstanceStateNotificationClientThread


            }
            try {
                boolean healthyRegistrant = RegistrantUtil.isHealthy(registrant);
                if (!healthyRegistrant && registrant.running()) {
                    registrant.stop();
                    new Thread(new InstanceStateNotificationClientThread(registrant, "INACTIVE")).start();
                    log.warn("Stopped registrant " + registrant + " since it is unhealthy." );
                } else if (healthyRegistrant && !registrant.running()) {
                    registrant.stop();
                    new Thread(new InstanceStateNotificationClientThread(registrant, "INACTIVE")).start();
                    clusteringClient.joinGroup(registrant, configurationContext);
                    log.info("Restarted registrant " + registrant + " after it became active");
                }
            } catch (Exception e) {
                log.error("Error occurred while running registrant health check", e);
View Full Code Here


        }
    }

    public void stopAll() {
        for (Registrant registrant : registrants) {
          new Thread(new InstanceStateNotificationClientThread(registrant, "INACTIVE")).start();
            registrant.stop();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.cartridge.agent.InstanceStateNotificationClientThread

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.