Package org.rhq.core.domain.resource.group

Examples of org.rhq.core.domain.resource.group.ClusterKey


            childName = MSG.group_tree_groupOfResourceType(type.getName());
        }
        ResourceGroupEnhancedTreeNode node = new ResourceGroupEnhancedTreeNode(childName);

        ClusterKeyFlyweight keyFlyweight = child.getClusterKey();
        ClusterKey key = new ClusterKey(parentKey, keyFlyweight.getResourceTypeId(), keyFlyweight.getResourceKey());
        String id = key.getKey();
        String parentId = parentKey.getKey();
        node.setID(id);
        node.setParentID(parentId);
        node.setClusterKey(key);
        node.setResourceType(type);
View Full Code Here


    public void showContextMenu(final VLayout treeView, final TreeGrid treeGrid,
        final ResourceGroupEnhancedTreeNode node) {

        if (node.isAutoClusterNode()) {
            final ClusterKey clusterKey = (ClusterKey) node.getAttributeAsObject("key");
            GWTServiceLookup.getClusterService().createAutoClusterBackingGroup(clusterKey, true,
                new AsyncCallback<ResourceGroup>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        CoreGUI.getErrorHandler().handleError(
                            MSG.view_tree_group_error_updateAutoCluster(clusterKey.getKey()), caught);
                    }

                    @Override
                    public void onSuccess(ResourceGroup result) {
                        showContextMenu(treeView, treeGrid, node, result);
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.resource.group.ClusterKey

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.