org.apache.log4j.jmx.LoggerDynamicMBean.class Maven / Gradle / Ivy
The newest version!
???? 0?
? ? ? ?
?
?
? ? ? ? ? ? ? ? ?
? ? ?
? ?
? ? ? ? ? ? ? ? ?
? ? ? ? ?
? ?
?
?
?
?
?
?
#
+ ?
7
;
?!"#$%
?&'(
>)
?
*
+,
;-./
J&01
23456
Q&78 ?9:
?;
<= >
?@AB
C ?
CDEF
;G
<H
IJK
LMNMO
?PQR
nST ?
J ?UVW
?XYZ[\]^
_`
?a ?bc
defg
dConstructors ([Ljavax/management/MBeanConstructorInfo; dOperations &[Ljavax/management/MBeanOperationInfo; dAttributes Ljava/util/Vector;
dClassName Ljava/lang/String; dDescription cat Lorg/apache/log4j/Logger; logger -class$org$apache$log4j$jmx$LoggerDynamicMBean Ljava/lang/Class; Synthetic class$org$apache$log4j$Appender (Lorg/apache/log4j/Logger;)V Code LineNumberTable LocalVariableTable this )Lorg/apache/log4j/jmx/LoggerDynamicMBean; handleNotification 4(Ljavax/management/Notification;Ljava/lang/Object;)V notification Ljavax/management/Notification; handback Ljava/lang/Object; buildDynamicMBeanInfo ()V constructors [Ljava/lang/reflect/Constructor; params &[Ljavax/management/MBeanParameterInfo; getLogger ()Lorg/apache/log4j/Logger; getMBeanInfo ()Ljavax/management/MBeanInfo; attribs &[Ljavax/management/MBeanAttributeInfo; mb Ljavax/management/MBeanInfo; invoke L(Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;
operationName [Ljava/lang/Object; signature [Ljava/lang/String;
Exceptionshi getAttribute &(Ljava/lang/String;)Ljava/lang/Object; l Lorg/apache/log4j/Level; e /Ljavax/management/MalformedObjectNameException; Ljava/lang/RuntimeException;
attributeName addAppender '(Ljava/lang/String;Ljava/lang/String;)V
appenderClass appenderName appender Lorg/apache/log4j/Appender; setAttribute (Ljavax/management/Attribute;)V s p attribute Ljavax/management/Attribute; name valuej appenderMBeanRegistration enumeration Ljava/util/Enumeration; registerAppenderMBean (Lorg/apache/log4j/Appender;)V
appenderMBean +Lorg/apache/log4j/jmx/AppenderDynamicMBean; Ljavax/management/JMException; #Ljava/beans/IntrospectionException;
objectName Ljavax/management/ObjectName; postRegister (Ljava/lang/Boolean;)V registrationDone Ljava/lang/Boolean; class$ %(Ljava/lang/String;)Ljava/lang/Class; x1 "Ljava/lang/ClassNotFoundException; x0
SourceFile LoggerDynamicMBean.javakl ? java/lang/ClassNotFoundException java/lang/NoClassDefFoundError ? ?mn %javax/management/MBeanConstructorInfo ? ? #javax/management/MBeanOperationInfo ? ? java/util/Vector ? ?opqrs ? ? NThis MBean acts as a management facade for a org.apache.log4j.Logger instance. ? ? ? ? ? ? ? ? java/lang/StringBuffer Received notification: tuvwsxsyz{|} org/apache/log4j/Appender ? ?~ DHierarchyDynamicMBean(): Constructs a HierarchyDynamicMBean instance ?? #javax/management/MBeanAttributeInfo java.lang.String The name of this Logger. ???? priority The priority of this logger. #javax/management/MBeanParameterInfo
class name add an appender to this logger ??
appender name name of the appender addAppender(): add an appender void ?????? javax/management/MBeanInfo &javax/management/MBeanNotificationInfo ???? java/lang/String ? ? Hello world. +javax/management/RuntimeOperationsException "java/lang/IllegalArgumentException Attribute name cannot be null ?? Cannot invoke a getter of with null attribute name ????? appender=?? javax/management/ObjectName log4j: -javax/management/MalformedObjectNameException Could not create ObjectName?{ java/lang/RuntimeException +javax/management/AttributeNotFoundException Cannot find attribute in addAppender called with , ? ? org.apache.log4j.Appender ? ?????? ? ? Attribute cannot be null Cannot invoke a setter of with null attribute??} Cannot invoke the setter of NULL??????
Attribute not found in ??????}?? (Adding AppenderMBean for appender named )org/apache/log4j/jmx/AppenderDynamicMBean ? ? log4j??????? javax.management.ObjectName The
appender. javax/management/JMException !Could not add appenderMBean for [ ].?? !java/beans/IntrospectionException ? ? ? ? 'org.apache.log4j.jmx.LoggerDynamicMBean ?? 'org/apache/log4j/jmx/LoggerDynamicMBean )org/apache/log4j/jmx/AbstractDynamicMBean %javax/management/NotificationListener javax/management/MBeanException $javax/management/ReflectionException /javax/management/InvalidAttributeValueException java/lang/Class forName initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; java/lang/Object getClass ()Ljava/lang/Class; getName ()Ljava/lang/String; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; javax/management/Notification getType toString org/apache/log4j/Logger debug (Ljava/lang/Object;)V getUserData ()Ljava/lang/Object; getConstructors "()[Ljava/lang/reflect/Constructor; 4(Ljava/lang/String;Ljava/lang/reflect/Constructor;)V <(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)V add (Ljava/lang/Object;)Z 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V `(Ljava/lang/String;Ljava/lang/String;[Ljavax/management/MBeanParameterInfo;Ljava/lang/String;I)V size ()I toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ?(Ljava/lang/String;Ljava/lang/String;[Ljavax/management/MBeanAttributeInfo;[Ljavax/management/MBeanConstructorInfo;[Ljavax/management/MBeanOperationInfo;[Ljavax/management/MBeanNotificationInfo;)V equals (Ljava/lang/String;)V 1(Ljava/lang/RuntimeException;Ljava/lang/String;)V getLevel ()Lorg/apache/log4j/Level; org/apache/log4j/Level
startsWith (Ljava/lang/String;)Z error (org/apache/log4j/helpers/OptionConverter instantiateByClassName I(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object; setName javax/management/Attribute getValue equalsIgnoreCase toLevel D(Ljava/lang/String;Lorg/apache/log4j/Level;)Lorg/apache/log4j/Level; setLevel (Lorg/apache/log4j/Level;)V getAllAppenders ()Ljava/util/Enumeration; java/util/Enumeration hasMoreElements ()Z nextElement getAppenderName /(Lorg/apache/log4j/Appender;)Ljava/lang/String; server Ljavax/management/MBeanServer; javax/management/MBeanServer isRegistered (Ljavax/management/ObjectName;)Z
registerMBean 2(Ljava/lang/Object;Ljavax/management/ObjectName;)V *(Ljava/lang/Object;Ljava/lang/Throwable;)V ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? :*? *? ? *? ?
*? Y? ?
**? ? ? *? *+? *? ? ? &