org.glassfish.admin.amx.impl.j2ee
Class J2EEManagedObjectImplBase

java.lang.Object
  extended by org.glassfish.admin.amx.impl.mbean.MBeanImplBase
      extended by org.glassfish.admin.amx.impl.mbean.AMXImplBase
          extended by org.glassfish.admin.amx.impl.j2ee.J2EEManagedObjectImplBase
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AMX_SPI, NotificationSender
Direct Known Subclasses:
EJBImplBase, J2EEDeployedObjectImplBase, J2EEDomainImpl, J2EELogicalServerImplBase, J2EEResourceImplBase, JCAConnectionFactoryImpl, JCAManagedConnectionFactoryImpl, JDBCDataSourceImpl, JDBCDriverImpl, JVMImpl, ResourceAdapterImpl, ServletImpl, URLResourceImpl

public abstract class J2EEManagedObjectImplBase
extends AMXImplBase


Field Summary
protected  long mStartTime
           
 
Fields inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SET
 
Fields inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
EMPTY_STRING_ARRAY, mSelfObjectName, mServer
 
Constructor Summary
J2EEManagedObjectImplBase(javax.management.ObjectName parentObjectName, Metadata meta, java.lang.Class<? extends J2EEManagedObject> intf)
           
J2EEManagedObjectImplBase(javax.management.ObjectName parentObjectName, Metadata meta, java.lang.Class<? extends J2EEManagedObject> intf, boolean stateManageable, boolean statisticsProvider, boolean evengProvider)
           
 
Method Summary
protected  MetadataImpl defaultChildMetadata()
           
protected  java.lang.String[] getChildrenAsStrings(java.util.Set<java.lang.String> types)
           
protected  java.lang.String[] getChildrenAsStrings(java.lang.String... args)
           
 javax.management.ObjectName getCorrespondingConfig()
           
 java.lang.String[] getdeployedObjects()
           
protected  Domain getDomainConfig()
           
protected  java.lang.String getExtraObjectNameProps(javax.management.MBeanServer server, javax.management.ObjectName nameIn)
          Deals with the special-case requirements of JSR 77: ancestor properties as well as some types require a J2EEApplication=null
 J2EEServer getJ2EEServer()
           
 Management getMEJB()
           
 java.lang.String getobjectName()
           
protected  java.lang.String getServerName()
           
 javax.management.ObjectName getServerObjectName()
           
 long getstartTime()
           
 int getstate()
           
 boolean iseventProvider()
           
 boolean isstateManageable()
           
 boolean isstatisticsProvider()
           
protected  java.lang.String j2eeType(javax.management.ObjectName objectName)
           
protected  Metadata metadata()
           
protected  javax.management.ObjectName preRegisterModifyName(javax.management.MBeanServer server, javax.management.ObjectName nameIn)
          JSR 77 requires an ancestor hierarchy via properties; this is in addition to the basic AMX requirements.
 
Methods inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
attributeNameToType, attributeTypeMatches, cdebug, child, child, child, findGetter, findMethod, findSetter, getAncestorByType, getAttribute, getAttributeByMethod, getAttributeInfo, getAttributeInfos, getAttributeInternal, getAttributeManually, getAttributeNames, getAttributeNoThrow, getAttributes, getAttributeType, getChildren, getChildren, getChildren, getChildren, getChildrenMap, getDomainRoot, getDomainRootProxy, getLogger, getMBeanInfo, getMBeanTracker, getName, getNotificationInfo, getObjectNameAttribute, getObjectNames, getObjectNamesForAttribute, getParent, getParentProxy, getProxy, getProxyFactory, getSelf, getSelf, getterNameMatches, handleException, handleGetAttributeException, handleInvokeThrowable, impossible, invoke, invokeManually, isReadOnlyAttribute, isUtilityMBean, java, operationNameMatches, postRegisterHook, postRegisterModifyMBeanInfo, preDeregisterHook, preRegister, preRegisterDone, preRegisterHook, registerChild, registerChildren, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, setAttributeManually, setAttributes, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperation, unregisterChildren
 
Methods inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
_getMBeanLogLevel, addNotificationListener, addNotificationListener, createNotificationBuilder, debug, debug, debugMethod, debugMethod, enableAMXDebug, getAMXDebug, getDebugID, getDebugOutput, getJMXDomain, getListenerCount, getMBeanLogger, getMBeanLoggerName, getMBeanLogLevel, getMBeanLogLevelInt, getMBeanServer, getNotificationBuilder, getNotificationEmitter, getNotificationTypeListenerCount, getObjectName, logFine, logFiner, logFinest, logInfo, logSevere, logWarning, postDeregister, postDeregisterHook, postRegister, preDeregister, quote, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, setAMXDebug, setMBeanLogLevel, shouldOmitObjectNameForDebug, sleepMillis, toString, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListener
 

Field Detail

mStartTime

protected final long mStartTime
Constructor Detail

J2EEManagedObjectImplBase

public J2EEManagedObjectImplBase(javax.management.ObjectName parentObjectName,
                                 Metadata meta,
                                 java.lang.Class<? extends J2EEManagedObject> intf)

J2EEManagedObjectImplBase

public J2EEManagedObjectImplBase(javax.management.ObjectName parentObjectName,
                                 Metadata meta,
                                 java.lang.Class<? extends J2EEManagedObject> intf,
                                 boolean stateManageable,
                                 boolean statisticsProvider,
                                 boolean evengProvider)
Method Detail

defaultChildMetadata

protected MetadataImpl defaultChildMetadata()

metadata

protected Metadata metadata()

getCorrespondingConfig

public javax.management.ObjectName getCorrespondingConfig()

getDomainConfig

protected Domain getDomainConfig()

preRegisterModifyName

protected javax.management.ObjectName preRegisterModifyName(javax.management.MBeanServer server,
                                                            javax.management.ObjectName nameIn)
JSR 77 requires an ancestor hierarchy via properties; this is in addition to the basic AMX requirements.

Overrides:
preRegisterModifyName in class AMXImplBase

getExtraObjectNameProps

protected java.lang.String getExtraObjectNameProps(javax.management.MBeanServer server,
                                                   javax.management.ObjectName nameIn)
Deals with the special-case requirements of JSR 77: ancestor properties as well as some types require a J2EEApplication=null

Parameters:
server -
nameIn -
Returns:

j2eeType

protected java.lang.String j2eeType(javax.management.ObjectName objectName)

getstartTime

public long getstartTime()

getServerName

protected java.lang.String getServerName()

getobjectName

public java.lang.String getobjectName()

isstatisticsProvider

public boolean isstatisticsProvider()

iseventProvider

public boolean iseventProvider()

isstateManageable

public boolean isstateManageable()

getJ2EEServer

public J2EEServer getJ2EEServer()

getServerObjectName

public javax.management.ObjectName getServerObjectName()

getdeployedObjects

public java.lang.String[] getdeployedObjects()

getstate

public int getstate()

getChildrenAsStrings

protected java.lang.String[] getChildrenAsStrings(java.util.Set<java.lang.String> types)

getChildrenAsStrings

protected java.lang.String[] getChildrenAsStrings(java.lang.String... args)

getMEJB

public final Management getMEJB()


Copyright © 2012 GlassFish Community. All Rights Reserved.