|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.modeler.BaseModelMBean
org.ow2.jonas.lib.jmbeans.J2EEServerMBean
public class J2EEServerMBean
J2EEServer MBean implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.modeler.BaseModelMBean |
|---|
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source |
| Constructor Summary | |
|---|---|
J2EEServerMBean()
|
|
| Method Summary | |
|---|---|
protected static Element |
addBundleNode(Document document,
String elementName,
org.osgi.framework.Bundle bundle)
Helper method for writing a bundle element on a given XML element. |
protected static Element |
addNode(Document document,
String elementName,
String value)
Helper method for writing a new element on a given XML element. |
protected static Element |
addNode(Document document,
String elementName,
String value,
Map<String,String> attributes)
Helper method for writing a new element on a given XML element. |
String[] |
getClassLoaderFilters()
Gets the system filters of classloaders. |
String[] |
getDeployedObjects()
Implement deployedObjects attribute cf. |
String |
getExportedPackages(String name,
boolean isClass)
Gets the exported packages for a given package name. |
String |
getExportedPackagesFromClass(String className)
Gets the exported packages for a given package name. |
String |
getExportedPackagesFromPackage(String packageName)
Gets the exported packages for a given package name. |
String[] |
getResources()
Implement resources attribute. |
URL[] |
getResources(String resourceName)
Gets all the URL to the given resource. |
String[] |
getServices()
Implement services attribute. |
String |
getServiceState(String service)
Return the state of a given service. |
String |
getState()
Implement the state attribute. |
String |
loadClass(String className)
Gets data about loading a given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J2EEServerMBean()
throws MBeanException,
RuntimeOperationsException
MBeanException
RuntimeOperationsException| Method Detail |
|---|
public String getState()
throws InstanceNotFoundException,
RuntimeOperationsException,
MBeanException,
InvalidTargetObjectTypeException
InstanceNotFoundException
RuntimeOperationsException
MBeanException
InvalidTargetObjectTypeException
public String[] getResources()
throws InstanceNotFoundException,
RuntimeOperationsException,
MBeanException,
InvalidTargetObjectTypeException
InstanceNotFoundException
RuntimeOperationsException
MBeanException
InvalidTargetObjectTypeException
public String[] getServices()
throws InstanceNotFoundException,
RuntimeOperationsException,
MBeanException,
InvalidTargetObjectTypeException
InstanceNotFoundException
RuntimeOperationsException
MBeanException
InvalidTargetObjectTypeException
public String[] getDeployedObjects()
throws InstanceNotFoundException,
RuntimeOperationsException,
MBeanException,
InvalidTargetObjectTypeException
InstanceNotFoundException
RuntimeOperationsException
MBeanException
InvalidTargetObjectTypeException
public String getServiceState(String service)
throws InstanceNotFoundException,
RuntimeOperationsException,
MBeanException,
InvalidTargetObjectTypeException
service - name
InstanceNotFoundException
RuntimeOperationsException
MBeanException
InvalidTargetObjectTypeException
InvalidTargetObjectTypeExceptio
public String getExportedPackagesFromPackage(String packageName)
throws MBeanException,
InstanceNotFoundException,
RuntimeOperationsException,
InvalidTargetObjectTypeException,
TransformerException
packageName - the name of a package or a class
InvalidTargetObjectTypeException - if MBean operation fails
RuntimeOperationsException - if MBean operation fails
InstanceNotFoundException - if MBean operation fails
TransformerException - if XML transformation fails
MBeanException
public String getExportedPackagesFromClass(String className)
throws MBeanException,
InstanceNotFoundException,
RuntimeOperationsException,
InvalidTargetObjectTypeException,
TransformerException
packageName - the name of a package or a class
InvalidTargetObjectTypeException - if MBean operation fails
RuntimeOperationsException - if MBean operation fails
InstanceNotFoundException - if MBean operation fails
TransformerException - if XML transformation fails
MBeanException
public String getExportedPackages(String name,
boolean isClass)
throws MBeanException,
InstanceNotFoundException,
RuntimeOperationsException,
InvalidTargetObjectTypeException,
TransformerException
name - the name of a package or a classboolean - true if it is a class, else false
InvalidTargetObjectTypeException - if MBean operation fails
RuntimeOperationsException - if MBean operation fails
InstanceNotFoundException - if MBean operation fails
TransformerException - if XML transformation fails
MBeanExceptionpublic String loadClass(String className)
className - the class name
public String[] getClassLoaderFilters()
throws MBeanException
MBeanException - if unable to get the system filters
public URL[] getResources(String resourceName)
throws MBeanException
resourceName - the name of the resource
MBeanException - if unable to get the resource name
protected static Element addBundleNode(Document document,
String elementName,
org.osgi.framework.Bundle bundle)
document - the document used to create elementselementName - the element's namebundle - the given bundle
protected static Element addNode(Document document,
String elementName,
String value,
Map<String,String> attributes)
document - the document used to create elementselementName - the element's namevalue - the element's valueattributes - the given attributes to write (if any)
protected static Element addNode(Document document,
String elementName,
String value)
document - the document used to create elementselementName - the element's namevalue - the element's value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||