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
public class DASJ2EEServerImpl extends J2EEServerImpl implements NotificationListener
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_TYPES
-
Fields inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEManagedObjectImplBase
mStartTime
-
-
Constructor Summary
Constructors Constructor Description DASJ2EEServerImpl(ObjectName parentObjectName, Metadata meta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetServerName()intgetstate()Convert an internal status code to JSR 77 StateManageable state.voidhandleNotification(Notification notif, Object ignore)booleanisstateManageable()protected voidregisterChildren()voidstart()voidstartRecursive()voidstop()-
Methods inherited from class org.glassfish.admin.amx.impl.j2ee.J2EEServerImpl
getjavaVMs, getjvm, getresources, getserverVendor, getserverVersion, unregisterChildren
-
Methods inherited from class org.glassfish.admin.amx.impl.j2ee.J2EELogicalServerImplBase
startApp, stopApp
-
Methods 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, preRegisterModifyName
-
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, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, setAttributeManually, setAttributes, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperation
-
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.NotificationBroadcaster
addNotificationListener, removeNotificationListener
-
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
-
-
-
Constructor Detail
-
DASJ2EEServerImpl
public DASJ2EEServerImpl(ObjectName parentObjectName, Metadata meta)
-
-
Method Detail
-
registerChildren
protected void registerChildren()
- Overrides:
registerChildrenin classJ2EEServerImpl
-
handleNotification
public void handleNotification(Notification notif, Object ignore)
- Specified by:
handleNotificationin interfaceNotificationListener
-
getServerName
protected String 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
-
-