Package org.apache.axis2.clustering.context

Examples of org.apache.axis2.clustering.context.ContextClusteringCommand.execute()


    public void execute(ConfigurationContext configContext) throws ClusteringFault {
        for (int i = 0; i < commands.size(); i++) {
            ContextClusteringCommand cmd = (ContextClusteringCommand) commands.get(i);
            if (cmd != null) {
                cmd.execute(configContext);
            }
        }
    }

    public String toString() {
View Full Code Here


    public void execute(ConfigurationContext configContext) throws ClusteringFault {
        for (int i = 0; i < commands.size(); i++) {
            ContextClusteringCommand cmd = (ContextClusteringCommand) commands.get(i);
            if (cmd != null) {
                cmd.execute(configContext);
            }
        }
    }

    public String toString() {
View Full Code Here

    }

    private void processMessage(Serializable msg) throws ClusteringFault {
        if (msg instanceof ContextClusteringCommand && contextManager != null) {
            ContextClusteringCommand ctxCmd = (ContextClusteringCommand) msg;
            ctxCmd.execute(configurationContext);
        } else if (msg instanceof ConfigurationClusteringCommand && configurationManager != null) {
            configurationManager.process((ConfigurationClusteringCommand) msg);
        }
    }
}
View Full Code Here

                    setServiceGroups(((GetConfigurationCommand) command).getServiceGroupNames());
            channelSender.sendToMember(getConfigRespCmd, sender);
        } else if (command instanceof AckCommand) {
            AckCommand cmd = (AckCommand) command;
            cmd.setMemberId(TribesUtil.getHost(sender));
            cmd.execute(configurationContext);
        } else {
            command.execute(configurationContext);
        }
    }
}
View Full Code Here

            while (responses == null || responses.length == 0)// Wait until we've received at least one response

            for (Response response : responses) {
                MemberListCommand command = (MemberListCommand) response.getMessage();
                command.setMembershipManager(primaryMembershipManager);
                command.execute(null); // Set the list of current members

                // If the WKA member is not part of this group, remove it
                if (!TribesUtil.areInSameDomain(response.getSource(),
                                                primaryMembershipManager.getLocalMember())) {
                    primaryMembershipManager.memberDisappeared(response.getSource());
View Full Code Here

            while (responses == null || responses.length == 0)// Wait until we've received at least one response

            for (Response response : responses) {
                MemberListCommand command = (MemberListCommand) response.getMessage();
                command.setMembershipManager(primaryMembershipManager);
                command.execute(null); // Set the list of current members

                // If the WKA member is not part of this group, remove it
                if (!TribesUtil.areInSameDomain(response.getSource(),
                                                primaryMembershipManager.getLocalMember())) {
                    primaryMembershipManager.memberDisappeared(response.getSource());
View Full Code Here

        @Override
        public void onMessage(Message<GroupManagementCommand> message) {
            GroupManagementCommand command = message.getMessageObject();
            try {
                command.execute(configurationContext);
            } catch (ClusteringFault e) {
                log.error("Cannot execute GroupManagementCommand" + command, e);
            }
        }
    }
View Full Code Here

                ConfigurationContext configContxt = new ConfigurationContext(axisConfiguration);
                ThreadFactory threadFactory = configContxt.getThreadPool();

                EventGenarator thread = new EventGenarator(messageContext, null, eventingConfigData
                        .getMessageThreshold(), eventElement, true, false, false, getMessageMap(), null, null);
                threadFactory.execute(thread);

                setMessageMap(new ConcurrentHashMap<String, Map<String, OMElement>>());

                Counter messageCounter = new Counter();
                messageCounter.resetMessageCount(messageContext);
View Full Code Here

                        ThreadFactory threadFactory = configContxt.getThreadPool();

                        EventGenarator thread = new EventGenarator(messageContext, null, eventingConfigData
                                .getMessageThreshold(), eventElement, false, false, true, null, null,
                                getXpathMap());
                        threadFactory.execute(thread);

                        setXpathMap(new ConcurrentHashMap<String, Map<String, OMElement>>());
                        Counter messageCounter = new Counter();
                        messageCounter.resetXPathCount(messageContext);
                    }
View Full Code Here

                        ThreadFactory threadFactory = configContxt.getThreadPool();

                        EventGenarator thread = new EventGenarator(messageContext, null, eventingConfigData
                                .getMessageThreshold(), eventElement, false, true, false, null,
                                getMessageDataMap(), null);
                        threadFactory.execute(thread);

                        setMessageDataMap(new ConcurrentHashMap<String, Map<String, OMElement>>());

                        Counter messageCounter = new Counter();
                        messageCounter.resetMessageDataCount(messageContext);
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.