1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.ejb; 27 28 import javax.management.ObjectName ; 29 30 import org.objectweb.jonas.jmx.JonasManagementRepr; 31 32 35 public class EditEjbEntityAction extends EditEjbAction { 36 37 39 41 46 protected EjbForm getEjbForm() { 47 return new EjbEntityForm(); 48 } 49 50 57 protected void fillEjbInfo(EjbForm p_Form, ObjectName p_ObjectName) 58 throws Exception { 59 fillEjbGlobalInfo(p_Form, p_ObjectName); 60 61 EjbEntityForm oForm = (EjbEntityForm) p_Form; 62 oForm.setCacheSize(getIntegerAttribute(p_ObjectName, "cacheSize")); 63 oForm.setMaxCacheSize(getIntegerAttribute(p_ObjectName, "maxCacheSize")); 64 oForm.setMinPoolSize(getIntegerAttribute(p_ObjectName, "minPoolSize")); 65 oForm.setPassivationTimeOut(getIntegerAttribute(p_ObjectName, "passivationTimeOut")); 66 oForm.setInactivityTimeOut(getIntegerAttribute(p_ObjectName, "inactivityTimeOut")); 67 oForm.setPersistency(getStringAttribute(p_ObjectName, "persistency")); 68 oForm.setPoolSize(getIntegerAttribute(p_ObjectName, "poolSize")); 69 oForm.setShared(getBooleanAttribute(p_ObjectName, "shared")); 70 oForm.setPrefetch(getBooleanAttribute(p_ObjectName, "prefetch")); 71 oForm.setLockPolicy(getStringAttribute(p_ObjectName, "lockPolicy")); 72 73 Integer [] aiEntityCounters = (Integer []) JonasManagementRepr.getAttribute(p_ObjectName 74 , "entityCounters"); 75 oForm.setUsedInTxInstance(aiEntityCounters[0].intValue()); 76 oForm.setUsedOutTxInstance(aiEntityCounters[1].intValue()); 77 oForm.setUnusedInstance(aiEntityCounters[2].intValue()); 78 oForm.setPassivatedInstance(aiEntityCounters[3].intValue()); 79 oForm.setRemovedInstance(aiEntityCounters[4].intValue()); 80 } 81 82 87 protected String getEjbForward() { 88 return "Ejb Entity"; 89 } 90 } 91 | Popular Tags |