org.apache.log4j.net.SocketServer.class Maven / Gradle / Ivy
The newest version!
???? 0=
? ? ? ?
?
?
: ? ?
: ? : ? ?
? ?
? : ?
?
?
? ? ?
? ?
?
? ? ?
? : ? : ?
> ? ?
: ? ? ? ?
?
?
? ?
$ ? ? ?
? ? ? : ? ?
: ?
? ? ?
? ?
? ? ?
0 ? ? ?
R ? ?
5 ?
5 ? ? ? ?
: ?
^ ? : ? ?
> ? ?
? ? ?
? ? ? ?
? ?
: ?
? ? : ?
5 ?
5 ? ? ? ? ?
M ?
L ?
> ? ?
R ?
5 ?
R ? ? : ? : ? ?
? ? ? ?
? ? GENERIC Ljava/lang/String; CONFIG_FILE_EXT cat Lorg/apache/log4j/Logger; server #Lorg/apache/log4j/net/SocketServer; port I hierarchyMap Ljava/util/Hashtable; genericHierarchy 'Lorg/apache/log4j/spi/LoggerRepository; dir Ljava/io/File; 'class$org$apache$log4j$net$SocketServer Ljava/lang/Class; Synthetic main ([Ljava/lang/String;)V Code LineNumberTable LocalVariableTable socket Ljava/net/Socket; inetAddress Ljava/net/InetAddress; h serverSocket Ljava/net/ServerSocket; e Ljava/lang/Exception; argv [Ljava/lang/String; usage (Ljava/lang/String;)V msg init 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V !Ljava/lang/NumberFormatException; portStr
configFile dirStr (Ljava/io/File;)V this directory configureHierarchy ?(Ljava/net/InetAddress;)Lorg/apache/log4j/spi/LoggerRepository; Lorg/apache/log4j/Hierarchy; key s i )()Lorg/apache/log4j/spi/LoggerRepository; f class$ %(Ljava/lang/String;)Ljava/lang/Class; x1 "Ljava/lang/ClassNotFoundException; x0 ()V
SourceFile SocketServer.java ? java/lang/ClassNotFoundException java/lang/NoClassDefFoundError ? ? ? ? Wrong number of arguments. ? ? b c java/lang/StringBuffer Listening on port f g
java/net/ServerSocket ?
Waiting to accept a new client. Connected to client at d e h i %org/apache/log4j/spi/LoggerRepository ? ? Starting new socket node. java/lang/Thread org/apache/log4j/net/SocketNode ? ? ? java/lang/Exception ? ? Usage: java n o !org.apache.log4j.net.SocketServer ? ? port configFile directory
!"# java/lang/NumberFormatException !Could not interpret port number [ ].$ ? java/io/File ? ?%& [ ] is not a directory. !org/apache/log4j/net/SocketServer ? ? l m java/util/Hashtable Locating configuration file for ' /()# !Could not parse the inetAddress [ ]. Using default hierarchy.* j ?+, a ` ?-.& org/apache/log4j/Hierarchy org/apache/log4j/spi/RootLogger/01 ?2 ?345 %org/apache/log4j/PropertyConfigurator6 78 Could not find config file [ j k _ ` "]. Will use the default hierarchy.9: ? generic .lcf;< java/lang/Object java/lang/Class forName initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; (I)Ljava/lang/StringBuffer; toString ()Ljava/lang/String; org/apache/log4j/Logger info (Ljava/lang/Object;)V (I)V accept ()Ljava/net/Socket; java/net/Socket getInetAddress ()Ljava/net/InetAddress; ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; get &(Ljava/lang/Object;)Ljava/lang/Object; ;(Ljava/net/Socket;Lorg/apache/log4j/spi/LoggerRepository;)V (Ljava/lang/Runnable;)V start printStackTrace java/lang/System err Ljava/io/PrintStream; java/io/PrintStream println getName exit java/lang/Integer parseInt (Ljava/lang/String;)I configure isDirectory ()Z java/net/InetAddress java/lang/String indexOf warn substring (II)Ljava/lang/String; #(Ljava/io/File;Ljava/lang/String;)V exists org/apache/log4j/Level DEBUG Lorg/apache/log4j/Level; (Lorg/apache/log4j/Level;)V (Lorg/apache/log4j/Logger;)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; getAbsolutePath doConfigure <(Ljava/lang/String;Lorg/apache/log4j/spi/LoggerRepository;)V org/apache/log4j/LogManager getLoggerRepository getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! : ^ _ ` a ` b c d e f g h i j k l m n o p q r s U ?*?? *2*2*2? ? ? ? ?
Y? ?
? ? ? ? ? Y? ? L? ? +? M,? N? ?
Y? ?
-? ? ? ? ? -? ? :? ? -? :? ? ? Y? Y,? !? "? #???L+? %? ? ? $ t J i j l o 5 p @ r H s M t R u k w z x y ? | ? } ? ~ ? ? ? ? ? ? u > M W v w R R x y z * z k @ g { | ? } ~ ? ? ? ? s w A? &*? '? &?
Y? (?
? )? *? +Y? )? ? )? ,?
-?
? ? '? .? t ? ? <