| Modifier and Type | Class and Description |
|---|---|
| public static class | AMXGlassfish.
Callback for |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final AMXGlassfish | DEFAULT
Default domain support |
| public static final String | |
| private final ObjectName | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public ObjectName | Returns: the ObjectName of the domain-root MBeanconnection to the MBeanServer conn)Ensure that AMX is loaded and ready to use. |
| public ObjectName | |
| public String | |
| public String | |
| public ObjectName | |
| public ObjectName | |
| public static String | |
| public void | |
| private static void | invokeWaitAMXReady(final MBeanServerConnection conn, final ObjectName objectName)
Invoke the waitAMXReady() method on the DomainRoot MBean, which must already be loaded. |
| public <T extends MBeanListener. | listenForBootAMX(final MBeanServerConnection server, final T callback)
Listen for the registration of the |
| public <T extends MBeanListener. | listenForDomainRoot(final MBeanServerConnection server, final T callback)
Listen for the registration of AMX DomainRoot Listening starts automatically. |
| public ObjectName | |
| public ObjectName | Returns: The objectname with pp, type, and (optionally) name.The parent part pp, final String The ObjectName type type, final String The ObjectName name name)Make a new AMX ObjectName with unchecked exception. |
| public ObjectName | |
| private static String | |
| public ObjectName | |
| public ObjectName | |
| public ObjectName |
| DEFAULT | back to summary |
|---|---|
| public static final AMXGlassfish DEFAULT Default domain support | |
| DEFAULT_JMX_DOMAIN | back to summary |
|---|---|
| public static final String DEFAULT_JMX_DOMAIN | |
| mDomainRoot | back to summary |
|---|---|
| private final ObjectName mDomainRoot | |
| mJMXDomain | back to summary |
|---|---|
| private final String mJMXDomain | |
| AMXGlassfish | back to summary |
|---|---|
| public AMXGlassfish(final String jmxDomain) Anything other than | |
| amxJMXDomain | back to summary |
|---|---|
| public String amxJMXDomain() JMX domain used by AMX MBeans. All MBeans in this domain must be AMX-compliant, see http://tinyurl.com/nryoqp = https://glassfish.dev.java.net/nonav/v3/admin/planning/V3Changes/V3_AMX_SPI.html | |
| amxSupportDomain | back to summary |
|---|---|
| public String amxSupportDomain() JMX domain used by AMX support MBeans. Private use only | |
| bootAMX | back to summary |
|---|---|
| public ObjectName bootAMX(final MBeanServerConnection conn) throws IOException Ensure that AMX is loaded and ready to use. This method returns only when all AMX subsystems have been loaded. It can be called more than once without ill effect, subsequent calls are ignored.
| |
| bootAMX | back to summary |
|---|---|
| public ObjectName bootAMX(final MBeanServer server) | |
| dasConfig | back to summary |
|---|---|
| public String dasConfig() name of the Domain Admin Server (DAS) <config> | |
| dasName | back to summary |
|---|---|
| public String dasName() name of the Domain Admin Server (DAS) as found in an ObjectName | |
| domainRoot | back to summary |
|---|---|
| public ObjectName domainRoot() return the ObjectName of the AMX DomainRoot MBean | |
| getBootAMXMBeanObjectName | back to summary |
|---|---|
| public ObjectName getBootAMXMBeanObjectName() ObjectName for | |
| getGlassfishVersion | back to summary |
|---|---|
| public static String getGlassfishVersion() Return a version string, or null if not running in Glassfish | |
| invokeBootAMX | back to summary |
|---|---|
| public void invokeBootAMX(final MBeanServerConnection conn) Invoke the bootAMX() method on | |
| invokeWaitAMXReady | back to summary |
|---|---|
| private static void invokeWaitAMXReady(final MBeanServerConnection conn, final ObjectName objectName) Invoke the waitAMXReady() method on the DomainRoot MBean, which must already be loaded. | |
| listenForBootAMX | back to summary |
|---|---|
| public <T extends MBeanListener. Listen for the registration of the | |
| listenForDomainRoot | back to summary |
|---|---|
| public <T extends MBeanListener. Listen for the registration of AMX DomainRoot Listening starts automatically. | |
| monitoringRoot | back to summary |
|---|---|
| public ObjectName monitoringRoot() ObjectName for top-level monitoring MBean (parent of those for each server) | |
| newObjectName | back to summary |
|---|---|
| public ObjectName newObjectName(final String pp, final String type, final String name) Make a new AMX ObjectName with unchecked exception. name must be null to create a singleton ObjectName. Note that the arguments must not contain the characters
| |
| newObjectName | back to summary |
|---|---|
| public ObjectName newObjectName(final String s) Make a new ObjectName for AMX domain with unchecked exception | |
| prop | back to summary |
|---|---|
| private static String prop(final String key, final String value) | |
| serverMon | back to summary |
|---|---|
| public ObjectName serverMon(final String serverName) ObjectName for top-level monitoring MBean for specified server | |
| serverMonForDAS | back to summary |
|---|---|
| public ObjectName serverMonForDAS() ObjectName for top-level monitoring MBean for the DAS. | |
| waitAMXReady | back to summary |
|---|---|
| public ObjectName waitAMXReady(final MBeanServerConnection server) Wait until AMX has loaded and is ready for use. This will not cause AMX to load; it will block forever until AMX is ready. In other words, don't call this method unless it's a convenient thread that can wait forever. | |
MBeanListener that waits for the BootAMXMBean to appear;
it always will load early in server startup. Once it has loaded, AMX can be booted
via bootAMX. A client should normally just call bootAMX, but
this callback may be suclassed if desired, and used as a trigger to
boot AMX and then take other dependent actions.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mbeanRegistered(final ObjectName objectName, final MBeanListener<T extends MBeanListener.
Overrides org. Implements org.
|
| BootAMXCallback | back to summary |
|---|---|
| public BootAMXCallback(final MBeanServerConnection conn) | |
| mbeanRegistered | back to summary |
|---|---|
| public void mbeanRegistered(final ObjectName objectName, final MBeanListener<T extends MBeanListener. Overrides org. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MBeanServerConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mbeanRegistered(final ObjectName objectName, final MBeanListener<T extends MBeanListener.
Overrides org. Implements org.
|
| mConn | back to summary |
|---|---|
| private final MBeanServerConnection mConn | |
| WaitForDomainRootListenerCallback | back to summary |
|---|---|
| public WaitForDomainRootListenerCallback(final MBeanServerConnection conn) | |
| mbeanRegistered | back to summary |
|---|---|
| public void mbeanRegistered(final ObjectName objectName, final MBeanListener<T extends MBeanListener. Overrides org. Implements org.
| |