Examples of GroupManagementAgent


Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        }
        return groups.toArray(new Group[groups.size()]);
    }

    public void shutdownGroup(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new ShutdownMemberCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new ShutdownMemberCommand());
    }

    public void restartGroup(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new RestartMemberCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new RestartMemberCommand());
    }

    public void shutdownGroupGracefully(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new ShutdownMemberGracefullyCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new ShutdownMemberGracefullyCommand());
    }

    public void restartGroupGracefully(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new RestartMemberGracefullyCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

    public void restartClusterGracefully() throws Exception {
        sendToCluster(new RestartMemberGracefullyCommand());
    }

    public void startGroupMaintenance(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new StartMaintenanceCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new StartMaintenanceCommand());
    }

    public void endGroupMaintenance(String groupName) throws Exception {
        GroupManagementAgent groupManagementAgent = getGroupManagementAgent(groupName);
        groupManagementAgent.send(new EndMaintenanceCommand());
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

    private void sendToCluster(GroupManagementCommand cmd) throws AxisFault {
        ClusteringAgent clusteringAgent = getClusteringAgent();
        Set<String> groupNames = clusteringAgent.getDomains();
        for (String groupName : groupNames) {
            GroupManagementAgent managementAgent =
                    clusteringAgent.getGroupManagementAgent(groupName);
            managementAgent.send(cmd);
        }
    }
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        }
    }

    private GroupManagementAgent getGroupManagementAgent(String groupName) throws AxisFault {
        ClusteringAgent clusteringAgent = getClusteringAgent();
        GroupManagementAgent groupManagementAgent =
                clusteringAgent.getGroupManagementAgent(groupName);
        if (groupManagementAgent == null) {
            handleException("No GroupManagementAgent defined for domain " + groupName);
        }
        return groupManagementAgent;
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

                String descAttrib = omElement.getAttributeValue(new QName("description"));
                String description = "Description not found";
                if (descAttrib != null) {
                    description = descAttrib.trim();
                }
                GroupManagementAgent eventHandler;
                try {
                    eventHandler = (GroupManagementAgent) Class.forName(handlerClass).newInstance();
                    eventHandler.setDescription(description);
                } catch (Exception e) {
                    String msg = "Could not instantiate GroupManagementAgent " + handlerClass +
                                 " for domain " + domainName;
                    log.error(msg, e);
                    throw new DeploymentException(msg, e);
View Full Code Here

Examples of org.apache.axis2.clustering.management.GroupManagementAgent

        // This is needed only when this member is running as a load balancer
        for (Object o : groupManagementAgents.keySet()) {
            String domain = (String) o;
            final MembershipManager membershipManager = new MembershipManager();
            membershipManager.setDomain(domain.getBytes());
            GroupManagementAgent groupMgtAgent = groupManagementAgents.get(domain);
            membershipManager.setGroupManagementAgent(groupMgtAgent);
            if(groupMgtAgent instanceof DefaultGroupManagementAgent) {
                ((DefaultGroupManagementAgent) groupMgtAgent).setMembershipManager(membershipManager);
            }
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.