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