| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private JMXRegistrationManager. | |
| private final LinkedHashSet | |
| pack-priv boolean | |
| pack-priv final Object | |
| private final ManagedObjectManagerInternal | |
| pack-priv MBeanImpl | |
| private final ObjectName | |
| private MBeanListener | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| callback | back to summary |
|---|---|
| private JMXRegistrationManager. | |
| deferredRegistrations | back to summary |
|---|---|
| private final LinkedHashSet<MBeanImpl> deferredRegistrations | |
| isJMXRegistrationEnabled | back to summary |
|---|---|
| pack-priv boolean isJMXRegistrationEnabled | |
| lock | back to summary |
|---|---|
| pack-priv final Object lock | |
| mom | back to summary |
|---|---|
| private final ManagedObjectManagerInternal mom | |
| root | back to summary |
|---|---|
| pack-priv MBeanImpl root | |
| rootParentName | back to summary |
|---|---|
| private final ObjectName rootParentName | |
| rpListener | back to summary |
|---|---|
| private MBeanListener<T extends MBeanListener. | |
| suspendCount | back to summary |
|---|---|
| private int suspendCount | |
| JMXRegistrationManager | back to summary |
|---|---|
| public JMXRegistrationManager(ManagedObjectManagerInternal mom, ObjectName rootParentName) | |
| clear | back to summary |
|---|---|
| pack-priv void clear() | |
| register | back to summary |
|---|---|
| public void register(MBeanImpl mb) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException Handle registration of this MBean. If we are suspended, simply add to the deferredRegistrationList and mark the MBean as suspended. If we are not suspended, then register if JMX registration is enabled.
| |
| resumeRegistration | back to summary |
|---|---|
| public void resumeRegistration() Decrement the suspended registration count. If the count goes to zero. all registrations that occurred while suspendCount > 0 are registered with the JMX server, UNLESS isJMXRegistrationEnabled is false, in which case we simply clear the deferredRegistrations list, because all MBean will be registered once the root is available. | |
| setRoot | back to summary |
|---|---|
| public void setRoot(MBeanImpl root) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException Set the MBeanImpl that is the root of this MBean tree. Must be set before other methods are called (but this is not enforced).
| |
| suspendRegistration | back to summary |
|---|---|
| public void suspendRegistration() Increment the suspended registration count. All registrations with JMX are suspended while suspendCount > 0. | |
| unregister | back to summary |
|---|---|
| public void unregister(MBeanImpl mb) throws InstanceNotFoundException, MBeanRegistrationException Unregister the MBean. If we are suspended, remove from the deferredRegistrations list and mark suspended false. In any case, we unregister from JMX if JMX registration is enabled. Note that we may call unregister on an unregistered object if suspendCount > 0, but that's OK, because MBean.unregister does nothing if mb is not registered.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final UnaryVoidFunction | REGISTER_FUNC
References Deprecated
UnaryVoidFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final UnaryVoidFunction | UNREGISTER_FUNC
References Deprecated
UnaryVoidFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | mbeanRegistered(ObjectName arg0, MBeanListener<T extends MBeanListener.
Implements org.
|
| public void | mbeanUnregistered(ObjectName arg0, MBeanListener<T extends MBeanListener.
Implements org.
|
| private void | traverse(MBeanImpl mb, UnaryVoidFunction<MBeanImpl> pre, UnaryVoidFunction<MBeanImpl> post)
References Deprecated
UnaryVoidFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| REGISTER_FUNC | back to summary |
|---|---|
| private final UnaryVoidFunction<MBeanImpl> REGISTER_FUNC
References Deprecated
See corresponding docs for further information. | |
| UNREGISTER_FUNC | back to summary |
|---|---|
| private final UnaryVoidFunction<MBeanImpl> UNREGISTER_FUNC
References Deprecated
See corresponding docs for further information. | |
| RootParentListener | back to summary |
|---|---|
| private RootParentListener() | |
| mbeanRegistered | back to summary |
|---|---|
| public void mbeanRegistered(ObjectName arg0, MBeanListener<T extends MBeanListener. Implements org. | |
| mbeanUnregistered | back to summary |
|---|---|
| public void mbeanUnregistered(ObjectName arg0, MBeanListener<T extends MBeanListener. Implements org. | |
| traverse | back to summary |
|---|---|
| private void traverse(MBeanImpl mb, UnaryVoidFunction<MBeanImpl> pre, UnaryVoidFunction<MBeanImpl> post)
References Deprecated
See corresponding docs for further information. | |