00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 package org.objectweb.jonas.webapp.jonasadmin.mbean;
00027
00028 import javax.management.ObjectName;
00029
00033 public class J2eeMbeanItem extends MbeanItem {
00034
00035
00036
00037 public static final String KEY_TYPE = "j2eeType";
00038 public static final String KEY_SERVER = "J2EEServer";
00039 public static final String KEY_APPLICATION = "J2EEApplication";
00040 public static final String KEY_NAME = "name";
00041
00042 public static final String NONE = "none";
00043
00044
00045
00046
00047 private String j2eeType = null;
00048 private String j2eeServer = null;
00049 private String j2eeApplication = null;
00050
00051
00052
00053 public J2eeMbeanItem() {
00054 super();
00055 }
00056
00057 public J2eeMbeanItem(ObjectName p_ObjectName) {
00058 super(p_ObjectName);
00059 setJ2eeType(p_ObjectName.getKeyProperty(KEY_TYPE));
00060 setJ2eeServer(p_ObjectName.getKeyProperty(KEY_SERVER));
00061 setJ2eeApplication(p_ObjectName.getKeyProperty(KEY_APPLICATION));
00062 setName(p_ObjectName.getKeyProperty(KEY_NAME));
00063 }
00064
00065
00066
00067 protected void initialize() {
00068 setFamily(FAMILY_J2EE);
00069 }
00070
00071
00072
00073 public String getJ2eeType() {
00074 return j2eeType;
00075 }
00076
00077 public void setJ2eeType(String j2eeType) {
00078 this.j2eeType = j2eeType;
00079 }
00080
00081 public String getJ2eeServer() {
00082 return j2eeServer;
00083 }
00084
00085 public void setJ2eeServer(String j2eeServer) {
00086 this.j2eeServer = j2eeServer;
00087 }
00088
00089 public String getJ2eeApplication() {
00090 return j2eeApplication;
00091 }
00092
00093 public void setJ2eeApplication(String j2eeApplication) {
00094 this.j2eeApplication = j2eeApplication;
00095 }
00096 }