org.jboss.management.j2ee
Class ServiceModule
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.management.j2ee.J2EEManagedObject (src)
org.jboss.management.j2ee.J2EEDeployedObject (src)
org.jboss.management.j2ee.J2EEModule (src)
org.jboss.management.j2ee.ServiceModule
- All Implemented Interfaces:
- MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
- public class ServiceModule
- extends J2EEModule (src)
Root class of the JBoss JSR-77 implementation of ServiceModule model.
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary |
ServiceModule(java.lang.String moduleName,
ObjectName (src) j2eeServerName,
java.lang.String[] jvmNames,
java.lang.String pDeploymentDescriptor)
Constructor taking the Name of this Object |
Methods inherited from class org.jboss.management.j2ee.J2EEManagedObject (src) |
getobjectName, getObjectName, getObjectName, getparent, getType, getType, iseventProvider, isstateManageable, isstatisticsProvider, newObjectName, postRegister, preDeregister, removeObject, removeObject, sendNotification, setparent |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, preRegister, start, startService, stop, stopService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServiceModule
public ServiceModule(java.lang.String moduleName,
ObjectName (src) j2eeServerName,
java.lang.String[] jvmNames,
java.lang.String pDeploymentDescriptor)
throws MalformedObjectNameException (src) ,
InvalidParentException (src)
- Constructor taking the Name of this Object
- Parameters:
moduleName
- the sar deployment module namej2eeServerName
- the J2EEServer ObjectName parentpDeploymentDescriptor
-
- Throws:
java.security.InvalidParameterException
- If the given Name is null
MalformedObjectNameException (src)
InvalidParentException (src)
create
public static ObjectName (src) create(MBeanServer (src) mbeanServer,
java.lang.String moduleName,
java.net.URL url)
destroy
public static void destroy(MBeanServer (src) mbeanServer,
java.lang.String pModuleName)
getMBeans
public java.lang.String[] getMBeans()
getMBean
public java.lang.String getMBean(int pIndex)
addChild
public void addChild(ObjectName (src) pChild)
- Overrides:
addChild
in class J2EEManagedObject (src)
removeChild
public void removeChild(ObjectName (src) pChild)
- Overrides:
removeChild
in class J2EEManagedObject (src)
getEventTypes
public java.lang.String[] getEventTypes()
getEventType
public java.lang.String getEventType(int index)
postCreation
public void postCreation()
- Overrides:
postCreation
in class J2EEManagedObject (src)
preDestruction
public void preDestruction()
- Overrides:
preDestruction
in class J2EEManagedObject (src)
toString
public java.lang.String toString()
- Overrides:
toString
in class J2EEDeployedObject (src)
getParentKeys
protected java.util.Hashtable getParentKeys(ObjectName (src) pParent)
- Description copied from class:
J2EEManagedObject (src)
- 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 (src)
- Parameters:
pParent
- The direct parent of this class
- Returns:
- A hashtable with the J2EE-Application and J2EE-Server as parent