org.jboss.management.j2ee
Class ServiceModule
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.management.j2ee.J2EEManagedObject
org.jboss.management.j2ee.J2EEDeployedObject
org.jboss.management.j2ee.J2EEModule
org.jboss.management.j2ee.ServiceModule
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, EventProvider, J2EEDeployedObjectMBean, J2EEManagedObjectMBean, J2EEModuleMBean, ServiceModuleMBean
public class ServiceModule
- extends J2EEModule
- implements ServiceModuleMBean
Root class of the JBoss JSR-77 implementation of ServiceModule model.
- Version:
- $Revision: 1.10.6.4 $
- Author:
- Andreas Schaefer, Scott Stark, Thomas Diesler, Dimitris Andreadis
Constructor Summary |
ServiceModule(String moduleName,
javax.management.ObjectName j2eeServerName,
String[] jvmNames,
String pDeploymentDescriptor)
Constructor taking the Name of this Object |
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject |
getLog, getNextNotificationSequenceNumber, getobjectName, getObjectName, getparent, getServer, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postDeregister, postRegister, preDeregister, preRegister, removeObject, removeObject, sendNotification, setparent |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
ServiceModule
public ServiceModule(String moduleName,
javax.management.ObjectName j2eeServerName,
String[] jvmNames,
String pDeploymentDescriptor)
throws javax.management.MalformedObjectNameException,
InvalidParentException
- Constructor taking the Name of this Object
- Parameters:
moduleName
- the sar deployment module namej2eeServerName
- the J2EEServer ObjectName parentpDeploymentDescriptor
-
- Throws:
InvalidParameterException
- If the given Name is null
javax.management.MalformedObjectNameException
InvalidParentException
create
public static javax.management.ObjectName create(javax.management.MBeanServer mbeanServer,
String moduleName,
URL url)
destroy
public static void destroy(javax.management.MBeanServer mbeanServer,
String pModuleName)
getMBeans
public String[] getMBeans()
- Specified by:
getMBeans
in interface ServiceModuleMBean
getMBean
public String getMBean(int pIndex)
- Specified by:
getMBean
in interface ServiceModuleMBean
addChild
public void addChild(javax.management.ObjectName pChild)
- Specified by:
addChild
in interface J2EEManagedObjectMBean
- Overrides:
addChild
in class J2EEManagedObject
removeChild
public void removeChild(javax.management.ObjectName pChild)
- Specified by:
removeChild
in interface J2EEManagedObjectMBean
- Overrides:
removeChild
in class J2EEManagedObject
getEventTypes
public String[] getEventTypes()
- Specified by:
getEventTypes
in interface EventProvider
- Returns:
- The actual list of Types of Events this Managed Object emits.
The list is never null nor empty
getEventType
public String getEventType(int index)
- Description copied from interface:
EventProvider
- Returns the given Type of Events it emits according to its index in the list
- Specified by:
getEventType
in interface EventProvider
- Parameters:
index
- Index of the requested Event Type
- Returns:
- Event Type if given Index is within the boundaries otherwise null
postCreation
public void postCreation()
- Overrides:
postCreation
in class J2EEManagedObject
preDestruction
public void preDestruction()
- Overrides:
preDestruction
in class J2EEManagedObject
toString
public String toString()
- Overrides:
toString
in class J2EEDeployedObject
getParentKeys
protected Hashtable getParentKeys(javax.management.ObjectName pParent)
- Description copied from class:
J2EEManagedObject
- This method can be overwritten by any subclass which must
return <parent-j2eeType> indicating its parents. By
default it returns an empty hashtable instance.
- Overrides:
getParentKeys
in class J2EEManagedObject
- Parameters:
pParent
- The direct parent of this class
- Returns:
- A hashtable with the J2EE-Application and J2EE-Server as parent
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.