org.rhq.enterprise.server.resource.cluster
Interface ClusterManagerRemote


public interface ClusterManagerRemote


Method Summary
 ResourceGroup createAutoClusterBackingGroup(Subject subject, ClusterKey clusterKey, boolean addResources)
          Given a cluster key create a backing group.
 ResourceGroup getAutoClusterBackingGroup(Subject subject, ClusterKey clusterKey)
          Return the backing group for the supplied cluster key.
 List<Resource> getAutoClusterResources(Subject subject, ClusterKey clusterKey)
          Given a cluster key get the auto cluster resource membership.
 ClusterFlyweight getClusterTree(Subject subject, int groupId)
          Load a fully populated tree view of the "cluster nodes" for a cluster group.
 

Method Detail

createAutoClusterBackingGroup

ResourceGroup createAutoClusterBackingGroup(Subject subject,
                                            ClusterKey clusterKey,
                                            boolean addResources)
Given a cluster key create a backing group.

Parameters:
clusterKey -
addResources - If true, the new group will be assigned the current resources defined by the clusterKey. Otherwise no resources will be assigned to the new group.
Throws:
IllegalArgumentException - if a backing group exists for this clusterKey
IllegalStateException - if the cluster group is not a compatible group

getAutoClusterBackingGroup

@Nullable
ResourceGroup getAutoClusterBackingGroup(Subject subject,
                                                  ClusterKey clusterKey)
Return the backing group for the supplied cluster key. Resource membership will represent the resources last set for the group and may not reflect current membership. See #getAutoClusterResources(String)

Parameters:
clusterKey -
Returns:
The backing group, or null if the key does not have a backing group.

getAutoClusterResources

List<Resource> getAutoClusterResources(Subject subject,
                                       ClusterKey clusterKey)
Given a cluster key get the auto cluster resource membership. The membership is always determined at call time, regardless of whether a backing group exists. To get the backing group, if it exists, for a cluster key then call #getAutoClusterBackingGroup(String).


getClusterTree

ClusterFlyweight getClusterTree(Subject subject,
                                int groupId)
Load a fully populated tree view of the "cluster nodes" for a cluster group. These are summary nodes and do not contain the actual resources in the group.

Parameters:
subject -
groupId -
Returns:


Copyright © 2005-2011 Red Hat, Inc.. All Rights Reserved.