1 24 25 package org.objectweb.jonas.management.j2eemanagement; 26 27 import javax.management.ObjectName ; 29 import javax.management.MalformedObjectNameException ; 30 31 import org.objectweb.jonas.jmx.J2eeObjectName; 33 34 39 public class J2EEDeployedObject extends J2EEManagedObject { 40 41 42 44 46 49 private String deploymentDescriptor = null; 50 51 54 private String jonasDeploymentDescriptor = null; 55 56 57 59 63 protected J2EEDeployedObject(String p_ObjectName) { 64 super(p_ObjectName); 65 } 66 67 74 protected J2EEDeployedObject(String p_ObjectName, boolean p_StateManageable 75 , boolean p_StatisticsProvider, boolean p_EventProvider) { 76 super(p_ObjectName, p_StateManageable, p_StatisticsProvider, p_EventProvider); 77 } 78 79 81 public String getDeploymentDescriptor() { 82 return deploymentDescriptor; 83 } 84 85 public void setDeploymentDescriptor(String deploymentDescriptor) { 86 this.deploymentDescriptor = deploymentDescriptor; 87 } 88 89 public String getJonasDeploymentDescriptor() { 90 return jonasDeploymentDescriptor; 91 } 92 93 public void setJonasDeploymentDescriptor(String jonasDeploymentDescriptor) { 94 this.jonasDeploymentDescriptor = jonasDeploymentDescriptor; 95 } 96 97 99 public String getServer() { 100 String s = null; 101 try { 102 ObjectName on = new ObjectName (getObjectName()); 103 s = J2eeObjectName.J2EEServer(on.getDomain() 104 , on.getKeyProperty(J2EE_TYPE_SERVER)).toString(); 105 } 106 catch (MalformedObjectNameException e) { 107 } 109 return s; 110 } 111 } 112 | Popular Tags |