J2EEManagedObject.java

00001 
00026 package org.objectweb.jonas.management.j2eemanagement;
00027 
00028 import org.objectweb.jonas.management.ReconfigDispatcher;
00029 
00035 public class J2EEManagedObject extends ReconfigDispatcher {
00036 
00037 //       ------------------------------------------------------------- Private Constants
00038         // the following strings represent key properties within
00039         // a J2EEManagedObject's objectName cf. JSR 77
00040         public final static String NAME = "name";
00041     public final static String J2EE_TYPE_SERVER = "J2EEServer";
00042     public final static String J2EE_TYPE_APPLICATION = "J2EEApplication";
00043     
00044 // ------------------------------------------------------------- Properties
00045 
00049     private String objectName;
00050 
00054     private boolean stateManageable;
00055 
00059     private boolean statisticsProvider;
00060 
00064     private boolean eventProvider;
00065 
00066 // ------------------------------------------------------------- Contructors
00067 
00072     protected J2EEManagedObject(String objectName) {
00073         this.objectName = objectName;
00074         this.stateManageable = false;
00075         this.statisticsProvider = false;
00076         this.eventProvider = false;
00077     }
00078 
00086     protected J2EEManagedObject(String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider) {
00087         this.objectName = objectName;
00088         this.stateManageable = stateManageable;
00089         this.statisticsProvider = statisticsProvider;
00090         this.eventProvider = eventProvider;
00091     }
00092 
00093 // ------------------------------------------------------------- Properties accessors
00094 
00099     public String getObjectName() {
00100         return objectName;
00101     }
00102 
00103     public boolean isEventProvider() {
00104         return eventProvider;
00105     }
00106 
00107     public boolean isStateManageable() {
00108         return stateManageable;
00109     }
00110 
00111     public boolean isStatisticsProvider() {
00112         return statisticsProvider;
00113     }
00114 
00115 }

Generated on Tue Feb 15 15:05:18 2005 for JOnAS by  doxygen 1.3.9.1