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.String | getConfigRef()
final Config config = ClusterHelper.getConfigForCluster(getConfigContext(), getName());
return config.getName();
|
public ConfigTarget | getConfigTarget()
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.String | getTargetObjectName(java.lang.String[] tokens)
checkTokens(tokens, 1);
return (tokens[0] + ":type=cluster,category=config,name=" + getName());
|
public TargetType | getType()
return TargetType.CLUSTER;
|