FileDocCategorySizeDatePackage
ClusterTarget.javaAPI DocGlassfish v2 API5058Fri May 04 22:34:08 BST 2007com.sun.enterprise.admin.target

ClusterTarget

public class ClusterTarget extends Target

Fields Summary
Constructors Summary
protected ClusterTarget(String name, com.sun.enterprise.config.ConfigContext cc)

        super(name, cc);
    
Methods Summary
public com.sun.enterprise.config.serverbeans.ApplicationRef[]getApplicationRefs()
Return all the application refs of the cluster

        return ClusterHelper.getApplicationReferences(getConfigContext(), getName());        
    
public com.sun.enterprise.config.serverbeans.Cluster[]getClusters()
Return the cluster

        final Cluster[] clusters = new Cluster[1];
        clusters[0] = ClusterHelper.getClusterByName(getConfigContext(), getName());
        return clusters;
    
public java.lang.StringgetConfigRef()

        final Config config = ClusterHelper.getConfigForCluster(getConfigContext(), getName());
        return config.getName();
    
public ConfigTargetgetConfigTarget()

        return new ConfigTarget(getConfigRef(), getConfigContext());
    
public com.sun.enterprise.config.serverbeans.Config[]getConfigs()
Return the configuration referenced by the cluster

        final Config[] configs = new Config[1];        
        configs[0] = ClusterHelper.getConfigForCluster(getConfigContext(), getName());
        return configs;
    
public com.sun.enterprise.config.serverbeans.NodeAgent[]getNodeAgents()
Return all the node agents that have instances that are part of the cluster

        return NodeAgentHelper.getNodeAgentsForCluster(getConfigContext(), getName());
    
public com.sun.enterprise.config.serverbeans.ResourceRef[]getResourceRefs()
Return all the resource refs of the cluster

        return ClusterHelper.getResourceReferences(getConfigContext(), getName());        
    
public com.sun.enterprise.config.serverbeans.Server[]getServers()
Return all the servers in the cluster

        return ServerHelper.getServersInCluster(getConfigContext(), getName());
    
public java.lang.StringgetTargetObjectName(java.lang.String[] tokens)

        checkTokens(tokens, 1);
        return (tokens[0] + ":type=cluster,category=config,name=" + getName());
    
public TargetTypegetType()

        return TargetType.CLUSTER;