1 23 24 27 28 package com.sun.enterprise.admin.target; 29 30 import java.io.Serializable ; 32 33 import javax.management.ObjectName ; 35 import javax.management.MalformedObjectNameException ; 36 37 import com.sun.enterprise.config.ConfigContext; 39 import com.sun.enterprise.config.ConfigException; 40 41 import com.sun.enterprise.util.i18n.StringManager; 42 43 import com.sun.enterprise.config.serverbeans.ServerHelper; 44 import com.sun.enterprise.config.serverbeans.Server; 45 import com.sun.enterprise.config.serverbeans.Cluster; 46 import com.sun.enterprise.config.serverbeans.NodeAgent; 47 48 public class DASTarget extends ServerTarget 49 { 50 53 private static final StringManager strMgr = 54 StringManager.getManager(DASTarget.class); 55 56 protected DASTarget(String name, ConfigContext cc) 57 { 58 super(name, cc); 59 } 60 61 public TargetType getType() 62 { 63 return TargetType.DAS; 64 } 65 66 69 public Cluster[] getClusters() throws ConfigException 70 { 71 throw new ConfigException(strMgr.getString("target.not_supported", 72 "getClusters", getType().getName())); 73 } 74 75 78 public NodeAgent[] getNodeAgents() throws ConfigException 79 { 80 throw new ConfigException(strMgr.getString("target.not_supported", 81 "getNodeAgents", getType().getName())); 82 } 83 } 84 | Popular Tags |