1 25 26 package org.objectweb.jonas.webapp.jonasadmin.mbean; 27 28 import javax.management.ObjectName ; 29 30 33 public class J2eeMbeanItem extends MbeanItem { 34 35 37 public static final String KEY_TYPE = "j2eeType"; 38 public static final String KEY_SERVER = "J2EEServer"; 39 public static final String KEY_APPLICATION = "J2EEApplication"; 40 public static final String KEY_NAME = "name"; 41 42 public static final String NONE = "none"; 43 44 45 47 private String j2eeType = null; 48 private String j2eeServer = null; 49 private String j2eeApplication = null; 50 51 53 public J2eeMbeanItem() { 54 super(); 55 } 56 57 public J2eeMbeanItem(ObjectName p_ObjectName) { 58 super(p_ObjectName); 59 setJ2eeType(p_ObjectName.getKeyProperty(KEY_TYPE)); 60 setJ2eeServer(p_ObjectName.getKeyProperty(KEY_SERVER)); 61 setJ2eeApplication(p_ObjectName.getKeyProperty(KEY_APPLICATION)); 62 setName(p_ObjectName.getKeyProperty(KEY_NAME)); 63 } 64 65 67 protected void initialize() { 68 setFamily(FAMILY_J2EE); 69 } 70 71 73 public String getJ2eeType() { 74 return j2eeType; 75 } 76 77 public void setJ2eeType(String j2eeType) { 78 this.j2eeType = j2eeType; 79 } 80 81 public String getJ2eeServer() { 82 return j2eeServer; 83 } 84 85 public void setJ2eeServer(String j2eeServer) { 86 this.j2eeServer = j2eeServer; 87 } 88 89 public String getJ2eeApplication() { 90 return j2eeApplication; 91 } 92 93 public void setJ2eeApplication(String j2eeApplication) { 94 this.j2eeApplication = j2eeApplication; 95 } 96 } | Popular Tags |