Class MBeanImplBase

    • Field Detail

      • EMPTY_STRING_ARRAY

        protected static final String[] EMPTY_STRING_ARRAY
      • mServer

        protected volatile MBeanServer mServer
        The MBeanServer in which this object is registered (if any)
      • mSelfObjectName

        protected volatile ObjectName mSelfObjectName
        The ObjectName by which this object is registered (if registered). Multiple registrations, which are possible, overwrite this; the last registration wins. If the MBean has not been registered, this name will be null.
    • Constructor Detail

      • MBeanImplBase

        public MBeanImplBase()
      • MBeanImplBase

        public MBeanImplBase​(MBeanServer mbeanServer)
        Some subclasses need the MBeanServer set in advance.
    • Method Detail

      • getListenerCount

        public final int getListenerCount()
      • getNotificationTypeListenerCount

        public final int getNotificationTypeListenerCount​(String type)
      • getNotificationEmitter

        protected final NotificationEmitterSupport getNotificationEmitter()
        Returns:
        an empty array Subclass may wish to override this.
      • getNotificationBuilder

        protected NotificationBuilder getNotificationBuilder​(String notificationType)
        Get a NotificationBuilder for the specified type of Notification whose source is this object.
      • sendNotification

        protected void sendNotification​(String notificationType)
        Send a Notification of the specified type containing no data.
      • sendNotification

        protected void sendNotification​(String notificationType,
                                        String key,
                                        Serializable value)
        Send a Notification of the specified type containing a single key/value pair for data.
      • sendNotification

        protected void sendNotification​(String notificationType,
                                        String message,
                                        String key,
                                        Serializable value)
        Send a Notification of the specified type containing a single key/value pair for data.
      • getObjectName

        public final ObjectName getObjectName()
      • getJMXDomain

        public String getJMXDomain()
      • getMBeanServer

        public final MBeanServer getMBeanServer()
      • trace

        protected final void trace​(Object o)
      • logSevere

        protected final void logSevere​(Object o)
      • logWarning

        protected final void logWarning​(Object o)
      • logInfo

        protected final void logInfo​(Object o)
      • logFine

        protected final void logFine​(Object o)
      • logFiner

        protected final void logFiner​(Object o)
      • logFinest

        protected final void logFinest​(Object o)
      • getMBeanLogger

        protected final Logger getMBeanLogger()
      • _getMBeanLogLevel

        protected final Level _getMBeanLogLevel()
      • getMBeanLogLevel

        public final String getMBeanLogLevel()
      • setMBeanLogLevel

        public final void setMBeanLogLevel​(String level)
      • getMBeanLogLevelInt

        protected final int getMBeanLogLevelInt()
      • getMBeanLoggerName

        public final String getMBeanLoggerName()
      • postRegisterHook

        protected void postRegisterHook​(Boolean registrationSucceeded)
      • preDeregisterHook

        protected void preDeregisterHook()
                                  throws Exception
        Throws:
        Exception
      • postDeregisterHook

        protected void postDeregisterHook()
      • getDebugID

        protected String getDebugID()
      • getAMXDebug

        public final boolean getAMXDebug()
        Although unusual, a subclass may override the debug state. Generally it is faster to NOT call getAMXDebug() before calling debug( x ) if 'x' is just a string. If it is expensive to construct 'x', then preflighting with getAMXDebug() may be worthwhile.
      • enableAMXDebug

        public boolean enableAMXDebug​(boolean enabled)
      • getDebugOutput

        protected Output getDebugOutput()
      • setAMXDebug

        public final void setAMXDebug​(boolean debug)
      • shouldOmitObjectNameForDebug

        protected boolean shouldOmitObjectNameForDebug()
      • debug

        protected final void debug​(Object o)
      • debugMethod

        protected void debugMethod​(String methodName,
                                   Object... args)
      • debugMethod

        protected void debugMethod​(String msg,
                                   String methodName,
                                   Object... args)
      • debug

        protected void debug​(Object... args)