Class DASJ2EEServerImpl
java.lang.Object
org.glassfish.admin.amx.impl.mbean.MBeanImplBase
org.glassfish.admin.amx.impl.mbean.AMXImplBase
org.glassfish.admin.amx.impl.j2ee.J2EEManagedObjectImplBase
org.glassfish.admin.amx.impl.j2ee.J2EELogicalServerImplBase
org.glassfish.admin.amx.impl.j2ee.J2EEServerImpl
org.glassfish.admin.amx.impl.j2ee.DASJ2EEServerImpl
- All Implemented Interfaces:
EventListener,DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,NotificationListener,org.glassfish.admin.amx.core.AMX_SPI,org.glassfish.admin.amx.util.jmx.NotificationSender
JSR 77 extension representing an Appserver standalone server (non-clustered)
Server MBean which will reside on DAS
for enabling state management including start() and stop()
-
Field Summary
Fields inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEServerImpl
INTF, J2EE_RESOURCE_TYPESFields inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEManagedObjectImplBase
mStartTimeFields inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SETFields inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
EMPTY_STRING_ARRAY, mSelfObjectName, mServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringintgetstate()Convert an internal status code to JSR 77 StateManageable state.voidhandleNotification(Notification notif, Object ignore) booleanprotected voidvoidstart()voidvoidstop()Methods inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEServerImpl
getjavaVMs, getjvm, getresources, getserverVendor, getserverVersion, unregisterChildrenMethods inherited from class org.glassfish.admin.amx.impl.j2ee.J2EELogicalServerImplBase
startApp, stopAppMethods inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEManagedObjectImplBase
defaultChildMetadata, getChildrenAsStrings, getChildrenAsStrings, getCorrespondingConfig, getdeployedObjects, getDomain, getExtraObjectNameProps, getJ2EEServer, getobjectName, getServerObjectName, getstartTime, iseventProvider, isstatisticsProvider, j2eeType, metadata, preRegisterModifyNameMethods 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, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, setAttributeManually, setAttributes, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperationMethods 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, traceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Constructor Details
-
DASJ2EEServerImpl
-
-
Method Details
-
registerChildren
protected void registerChildren()- Overrides:
registerChildrenin classJ2EEServerImpl
-
handleNotification
- Specified by:
handleNotificationin interfaceNotificationListener
-
getServerName
- Overrides:
getServerNamein classJ2EEManagedObjectImplBase
-
isstateManageable
public boolean isstateManageable()- Overrides:
isstateManageablein classJ2EEManagedObjectImplBase
-
getstate
public int getstate()Convert an internal status code to JSR 77 StateManageable state. private static int serverStatusCodeToStateManageableState( final int statusCode ) { int state = STATE_FAILED; switch( statusCode ) { default: throw new IllegalArgumentException( "Uknown status code: " + statusCode ); case Status.kInstanceStartingCode: state = STATE_STARTING; break; case Status.kInstanceRunningCode: state = STATE_RUNNING; break; case Status.kInstanceStoppingCode: state = STATE_STOPPING; break; case Status.kInstanceNotRunningCode: state = STATE_STOPPED; break; } return state; }- Overrides:
getstatein classJ2EELogicalServerImplBase
-
start
public void start()- Overrides:
startin classJ2EELogicalServerImplBase
-
startRecursive
public void startRecursive()- Overrides:
startRecursivein classJ2EELogicalServerImplBase
-
stop
public void stop()- Overrides:
stopin classJ2EELogicalServerImplBase
-