Package org.apache.stratos.messaging.event.instance.status

Examples of org.apache.stratos.messaging.event.instance.status.InstanceStartedEvent


    public static void publishInstanceStartedEvent() {
        if (!isStarted()) {
            if (log.isInfoEnabled()) {
                log.info("Publishing instance started event");
            }
            InstanceStartedEvent event = new InstanceStartedEvent(
                    CartridgeAgentConfiguration.getInstance().getServiceName(),
                    CartridgeAgentConfiguration.getInstance().getClusterId(),
                    CartridgeAgentConfiguration.getInstance().getNetworkPartitionId(),
                    CartridgeAgentConfiguration.getInstance().getPartitionId(),
                    CartridgeAgentConfiguration.getInstance().getMemberId());
View Full Code Here


            }
            // If member started event is received publish artifact update message
            // To do a git clone
            if (InstanceStartedEvent.class.getName().equals(type)) {
                String json = receivedMessage.getText();
                InstanceStartedEvent event = (InstanceStartedEvent) Util.jsonToObject(json, InstanceStartedEvent.class);
                String clusterId = event.getClusterId();
                if(log.isInfoEnabled()) {
                    log.info("Cluster id: " + clusterId);
                }

                Set<CartridgeSubscription> cartridgeSubscriptions = new DataInsertionAndRetrievalManager().getCartridgeSubscriptionForCluster(clusterId);
View Full Code Here

TOP

Related Classes of org.apache.stratos.messaging.event.instance.status.InstanceStartedEvent

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.