|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.management.j2ee.J2EEManagedObject
Root class of the JBoss JSR-77 implementation of J2EEManagedObject.
Field Summary | |
static String |
NAME
|
static String |
TYPE
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
J2EEManagedObject(String j2eeType,
String resName,
javax.management.ObjectName jsr77ParentName)
Constructor for any Managed Object except the root J2EEMangement. |
|
J2EEManagedObject(String domainName,
String j2eeType,
String resName)
Constructor for the root J2EEDomain object |
Method Summary | |
void |
addChild(javax.management.ObjectName pChild)
|
String |
getobjectName()
|
javax.management.ObjectName |
getObjectName()
|
javax.management.ObjectName |
getObjectName(javax.management.MBeanServer pServer,
javax.management.ObjectName pName)
|
String |
getparent()
|
protected Hashtable |
getParentKeys(javax.management.ObjectName pParent)
This method can be overwritten by any subclass which must return <parent-j2eeType> indicating its parents. |
protected static String |
getType(javax.management.ObjectName pName)
Retrieves the type out of an JSR-77 object name |
protected static String |
getType(String pName)
Retrieves the type out of an JSR-77 object name |
boolean |
iseventProvider()
|
boolean |
isstateManageable()
|
boolean |
isstatisticsProvider()
|
protected static javax.management.ObjectName |
newObjectName(String pName)
Return the ObjectName that is represented by the given string. |
protected void |
postCreation()
|
void |
postRegister(Boolean registrationDone)
Last steps to be done after MBean is registered on MBeanServer. |
void |
preDeregister()
Last steps to be done before MBean is unregistered on MBeanServer. |
protected void |
preDestruction()
|
void |
removeChild(javax.management.ObjectName pChild)
|
protected static javax.management.ObjectName |
removeObject(javax.management.MBeanServer pServer,
String pSearchCriteria)
|
protected static javax.management.ObjectName |
removeObject(javax.management.MBeanServer pServer,
String pName,
String pSearchCriteria)
|
void |
sendNotification(String type,
String info)
An overload of the super sendNotification that only takes the event type and msg. |
void |
setparent(String pParent)
|
String |
toString()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Field Detail |
public static final String TYPE
public static final String NAME
Constructor Detail |
public J2EEManagedObject(String domainName, String j2eeType, String resName) throws javax.management.MalformedObjectNameException
domainName
- domain portion to use for the JMX ObjectNamej2eeType
- JSR77 j2ee-type of the resource being createdresName
- Name of the managed resource
InvalidParameterException
- If the given Domain Name, Type or Name is null
javax.management.MalformedObjectNameException
public J2EEManagedObject(String j2eeType, String resName, javax.management.ObjectName jsr77ParentName) throws javax.management.MalformedObjectNameException, InvalidParentException
j2eeType
- JSR77 j2ee-type of the resource being createdresName
- name of the resourcejsr77ParentName
- Object Name of the parent of this Managed Object
which must be defined
InvalidParameterException
- If the given Type, Name or Parent is null
javax.management.MalformedObjectNameException
InvalidParentException
Method Detail |
protected static String getType(String pName)
pName
- Object Name to check if null then
it will be treated like NO type found
protected static String getType(javax.management.ObjectName pName)
pName
- Object Name to check if null then
it will be treated like NO type found
protected static javax.management.ObjectName newObjectName(String pName)
pName
- a object nameprotected static javax.management.ObjectName removeObject(javax.management.MBeanServer pServer, String pSearchCriteria) throws javax.management.JMException
javax.management.JMException
protected static javax.management.ObjectName removeObject(javax.management.MBeanServer pServer, String pName, String pSearchCriteria) throws javax.management.JMException
javax.management.JMException
public javax.management.ObjectName getObjectName()
public String getobjectName()
getobjectName
in interface J2EEManagedObjectMBean
public String getparent()
getparent
in interface J2EEManagedObjectMBean
public void setparent(String pParent) throws InvalidParentException
setparent
in interface J2EEManagedObjectMBean
InvalidParentException
public void addChild(javax.management.ObjectName pChild)
addChild
in interface J2EEManagedObjectMBean
public void removeChild(javax.management.ObjectName pChild)
removeChild
in interface J2EEManagedObjectMBean
public boolean isstateManageable()
isstateManageable
in interface J2EEManagedObjectMBean
public boolean isstatisticsProvider()
isstatisticsProvider
in interface J2EEManagedObjectMBean
public boolean iseventProvider()
iseventProvider
in interface J2EEManagedObjectMBean
public javax.management.ObjectName getObjectName(javax.management.MBeanServer pServer, javax.management.ObjectName pName)
public final void postRegister(Boolean registrationDone)
postCreation()
method.
postRegister
in interface javax.management.MBeanRegistration
public final void preDeregister() throws Exception
preDestruction()
method.
preDeregister
in interface javax.management.MBeanRegistration
Exception
public void sendNotification(String type, String info)
type
- the notification event typeinfo
- the notification event msg infopublic String toString()
protected void postCreation()
protected void preDestruction()
protected Hashtable getParentKeys(javax.management.ObjectName pParent)
pParent
- The direct parent of this class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |