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

NodeAgentTarget

public class NodeAgentTarget extends Target

Fields Summary
private static final com.sun.enterprise.util.i18n.StringManager
strMgr
i18n strings manager object
Constructors Summary
protected NodeAgentTarget(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 who contain instances managed by this node agent

        return ClusterHelper.getClustersForNodeAgent(getConfigContext(), getName());
    
public java.lang.StringgetConfigRef()

        return null; 
    
public ConfigTargetgetConfigTarget()

        throw new ConfigException(strMgr.getString(
            "target.no_config_for_node_agent"));
    
public com.sun.enterprise.config.serverbeans.Config[]getConfigs()
Return the configuration associated with this Node Agent.

        throw new ConfigException(strMgr.getString("target.not_supported",
            "getConfigs", getType().getName()));
    
public com.sun.enterprise.config.serverbeans.NodeAgent[]getNodeAgents()
Return the node agent

        NodeAgent[] agents = new NodeAgent[1];
        agents[0] = NodeAgentHelper.getNodeAgentByName(getConfigContext(), getName());
        return agents;
    
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()
Return all the servers managed by the node agent

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

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

        return TargetType.NODE_AGENT;