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

DomainTarget

public class DomainTarget extends Target

(Omit source code)

Fields Summary
private static final com.sun.enterprise.util.i18n.StringManager
strMgr
i18n strings manager object
Constructors Summary
protected DomainTarget(String name, com.sun.enterprise.config.ConfigContext cc)


        
    
        super(name, cc);
    
Methods Summary
public com.sun.enterprise.config.serverbeans.ApplicationRef[]getApplicationRefs()

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getApplicationRefs", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.Cluster[]getClusters()
Return all the clusters in the domain

        return ClusterHelper.getClustersInDomain(getConfigContext());
    
public java.lang.StringgetConfigRef()

        return null;
    
public ConfigTargetgetConfigTarget()

        throw new Exception(strMgr.getString("target.no_config_for_domain"));
    
public com.sun.enterprise.config.serverbeans.Config[]getConfigs()
Return all the configurations in the domain

        return ConfigAPIHelper.getConfigsInDomain(getConfigContext());
    
public com.sun.enterprise.config.serverbeans.NodeAgent[]getNodeAgents()
Return all the node agents in the domain

        return NodeAgentHelper.getNodeAgentsInDomain(getConfigContext());        
    
public com.sun.enterprise.config.serverbeans.ResourceRef[]getResourceRefs()

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getResourceRefs", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.Server[]getServers()
Get all servers in the domain

        return ServerHelper.getServersInDomain(getConfigContext());
    
public java.lang.StringgetTargetObjectName(java.lang.String[] tokens)

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

        return TargetType.DOMAIN;