org.glassfish.admin.amx.impl.ext
Class RuntimeRootImpl

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.ext.RuntimeRootImpl
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AMX_SPI, NotificationSender

public final class RuntimeRootImpl
extends AMXImplBase

AMX RealmsMgr implementation. Note that realms don't load until #loadRealms is called.


Field Summary
 
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
RuntimeRootImpl(javax.management.ObjectName parent)
           
 
Method Summary
 java.lang.String executeREST(java.lang.String cmd)
           
 java.lang.String getContextRoot(java.lang.String applicationName, java.lang.String moduleName)
          Return the context root of a specified module.
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> getDeploymentConfigurations(java.lang.String appName)
          Return a list of deployment descriptor maps for the specified application.
 java.lang.String[] getJMXServiceURLs()
           
 java.lang.String getJVMReport(java.lang.String type)
           
 java.lang.String getRESTBaseURL()
           
 javax.management.ObjectName[] getServerRuntime()
           
 java.util.Map<java.lang.String,java.lang.String> getSubComponentsOfModule(java.lang.String applicationName, java.lang.String moduleName)
          Return the subcomponents (ejb/web) of a specified module.
 java.lang.String[] getSupportedCipherSuites()
           
 boolean isStartedInDebugMode()
           
protected  void registerChildren()
           
 void restartDomain()
           
 void stopDomain()
           
 
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, preRegisterModifyName, registerChild, 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
 

Constructor Detail

RuntimeRootImpl

public RuntimeRootImpl(javax.management.ObjectName parent)
Method Detail

getServerRuntime

public javax.management.ObjectName[] getServerRuntime()

registerChildren

protected final void registerChildren()
Overrides:
registerChildren in class AMXImplBase

getDeploymentConfigurations

public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getDeploymentConfigurations(java.lang.String appName)
Return a list of deployment descriptor maps for the specified application. In each map: a. The module name is stored by the MODULE_NAME_KEY. b. The path of the deployment descriptor is stored by the DD_PATH_KEY. c. The content of the deployment descriptor is stored by the DD_CONTENT_KEY.

Parameters:
the - application name
Returns:
the list of deployment descriptor maps

stopDomain

public void stopDomain()

restartDomain

public void restartDomain()

getRESTBaseURL

public java.lang.String getRESTBaseURL()

executeREST

public java.lang.String executeREST(java.lang.String cmd)

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()

getJMXServiceURLs

public java.lang.String[] getJMXServiceURLs()

getJVMReport

public java.lang.String getJVMReport(java.lang.String type)

isStartedInDebugMode

public boolean isStartedInDebugMode()

getSubComponentsOfModule

public java.util.Map<java.lang.String,java.lang.String> getSubComponentsOfModule(java.lang.String applicationName,
                                                                                 java.lang.String moduleName)
Return the subcomponents (ejb/web) of a specified module.

Parameters:
applicationName - the application name
moduleName - the module name
Returns:
a map of the sub components, where the key is the component name and the value is the component type

getContextRoot

public java.lang.String getContextRoot(java.lang.String applicationName,
                                       java.lang.String moduleName)
Return the context root of a specified module.

Parameters:
applicationName - the application name
moduleName - the module name
Returns:
the context root of a specified module


Copyright © 2012 GlassFish Community. All Rights Reserved.