java.lang.management.ManagementFactory will invoke to find,
load, and register Platform MBeans.
ManagementFactory loads the installed providers of this service interface and each provides the
platform components that defines MXBean
or DynamicMBean to be registered in the platform MBeanServer.
A PlatformMBeanProvider will implement the getPlatformComponentList()
method to return the list of PlatformComponents it provides.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | PlatformMBeanProvider.
The higher level interface for which the MBeans modeled by
this object should be recognized. For instance, for the T>Operating System MXBean, this should be java..
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract List | Returns: a list of PlatformComponent instances describing the Platform MBeans provided by this provider.Returns a list of PlatformComponent instances describing the Platform MBeans provided by this provider. |
| PlatformMBeanProvider | back to summary |
|---|---|
| protected PlatformMBeanProvider() Instantiates a new PlatformMBeanProvider. | |
| getPlatformComponentList | back to summary |
|---|---|
| public abstract List Returns a list of PlatformComponent instances describing the Platform MBeans provided by this provider.
| |
Operating System MXBean, this should be java.lang.management.OperatingSystemMXBean .
PlatformComponent models MBeans of a management interface supported
by the platform.
If a PlatformComponent models a singleton MBean, the ObjectName pattern must be the canonical name of that
singleton MBean. Otherwise, it must be an ObjectName pattern
that can be used to query the MBeans for this
PlatformComponent registered in a MBeanServer.
ObjectName pattern serves as a unique
key for identifying the instance of PlatformComponent. It is thus illegal
for a given PlatformMBeanProvider to export several instance of
PlatformComponent with the same
ObjectName pattern string.
| Modifier and Type | Method and Description |
|---|---|
| public default <I> List | |
| public String | Returns: An ObjectName pattern uniquely identifies the MBeans modeled by this instance.An ObjectName pattern uniquely identifies the MBeans
modeled by this |
| public default boolean | Returns: true if this instance models a singleton MBean.Returns |
| public Set | Returns: the names of the management interfaces exported by the MBeans modeled by this object.Returns the names of the management interfaces implemented by the
MBeans modeled by this |
| public Set | Returns: The set of interfaces implemented by the MBeans modeled by this instanceThe set of interfaces implemented by the MBeans modeled
by this |
| public Map | Returns: A map with, for each MBean, the ObjectName string as key and the MBean as value.A map from ObjectName string to the MBean instance this
|
| public default boolean | Returns: true if the MBeans modeled by this instance should
automatically be registered in the Platform MBeanServer.Returns |
| getMBeans | back to summary |
|---|---|
| public default <I> List Return the list of MBeans that implement the given Implementation Note This method will be called when | |
| getObjectNamePattern | back to summary |
|---|---|
| public String getObjectNamePattern() An ObjectName pattern uniquely identifies the MBeans
modeled by this
| |
| isSingleton | back to summary |
|---|---|
| public default boolean isSingleton() Returns
| |
| mbeanInterfaceNames | back to summary |
|---|---|
| public Set Returns the names of the management interfaces implemented by the
MBeans modeled by this Implementation Note When | |
| mbeanInterfaces | back to summary |
|---|---|
| public Set The set of interfaces implemented by the MBeans modeled
by this Implementation Note
| |
| nameToMBeanMap | back to summary |
|---|---|
| public Map A map from ObjectName string to the MBean instance this
Implementation Note If | |
| shouldRegister | back to summary |
|---|---|
| public default boolean shouldRegister() Returns
| |