1 23 24 package com.sun.enterprise.management.model; 25 26 import javax.management.*; 27 import java.util.*; 28 29 32 public class J2EEServerMdl extends J2EEManagedObjectMdl { 33 34 37 private boolean restartRequired = false; 38 39 private String serverVendor = "Sun Microsystems, Inc."; 40 private static String MANAGED_OBJECT_TYPE = "J2EEServer"; 41 42 public J2EEServerMdl() { 43 48 super("j2ee100", false, false, false); 49 } 50 51 125 public String getserverVendor(){ 126 return serverVendor; 127 } 128 129 138 public String getj2eeType() { 139 return MANAGED_OBJECT_TYPE; 140 } 141 142 146 public String getobjectName() { 147 Set s = findNames("j2eeType="+getj2eeType()+",name="+getJ2EEServer()); 148 Object [] objs = s.toArray(); 149 if (objs.length > 0) { 150 String name = ((ObjectName)objs[0]).toString(); 151 return name; 152 } else { 153 return null; 154 } 155 } 156 157 159 183 184 187 188 246 247 251 252 306 307 309 314 320 } 321 | Popular Tags |