Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\cti\C3T\fr\c3t\net\ApplicationWatcher.class
Êþº¾ 2õ ; ;! ;" ;# ;$ ;% ;& ;' ;( ;) ;* ;+ ;, ;- ;. ;/ }01 02 034 5 ;678 9: ;;< = ;>? "0@ $A ;BC 'A '0 ;D EFG ,0H ,I ,J ,K ELMN 4OP 3Q 3R 3S 3TU VWX YZ Y[\ @O ] ^ _ `a b c ;de f Ig h ijklmnmop QW iq Qrks Qt Qu v 'wxy Ez E{| ,}~ E ?? ?? Q? ~?? ;?? $? $? $? $? $h ? ?? ?? ? ?? Q???? y? ? E??? ConnectionController InnerClasses logger Lorg/apache/log4j/Logger; PING_CONTROL_PERIOD I ConstantValue ' CONNECTION_MESSAGE B CONNECTION_END_MESSAGE PING_MESSAGE PING_RESPONSE_MESSAGE CONNECTION_REQUEST_MESSAGE FIND_ANOTHER_SERVER_MESSAGE DISCOVER_MESSAGE listenerSet Lfr/c3t/util/FastHashSet; applicationMap Lfr/c3t/util/FastHashMap; timer Ljava/util/Timer; taskProcessor Lfr/c3t/util/TaskProcessor; eventProcessor rcvBuffer [B rcvPacket Ljava/net/DatagramPacket; pingResponsePacket bar $Lfr/c3t/io/ByteArrayDataInputStream; baw %Lfr/c3t/io/ByteArrayDataOutputStream; socketIn Ljava/net/DatagramSocket; socketOut connectionController 4Lfr/c3t/net/ApplicationWatcher$ConnectionController; pingControlPeriod alive Z CONNECTED_EVENT STOPPED_EVENT DOWN_EVENT <init> ()V Code LineNumberTable LocalVariableTable this Lfr/c3t/net/ApplicationWatcher; startServer (I)V port thread Ljava/lang/Thread; StackMapTable Exceptions stop addListener *(Lfr/c3t/net/ApplicationWatcherListener;)V listener 'Lfr/c3t/net/ApplicationWatcherListener; removeListener setConnectionController 7(Lfr/c3t/net/ApplicationWatcher$ConnectionController;)V controller getWatchedApplications ()Ljava/util/List; getNumberOfWatchedApplications ()I (Ljava/lang/String;)I application Lfr/c3t/net/WatchedApplication; it Ljava/util/Iterator; applicationName Ljava/lang/String; count? applicationConnected ,(Ljava/lang/String;Ljava/net/InetAddress;I)Z host Ljava/net/InetAddress; findAnotherServer "(Lfr/c3t/net/WatchedApplication;)V packet e Ljava/io/IOException; watchedApplicationx finalize manageConnectionMessage -(Ljava/net/InetAddress;ILjava/lang/String;Z)V from forcep canConnect #(Lfr/c3t/net/WatchedApplication;Z)Z sendConnectionResponseMessage #(Lfr/c3t/net/WatchedApplication;Z)V okU?@? manageConnectionEndMessage (Ljava/net/InetAddress;I)V managePingMessage manageDiscoverMessage fireListeners #(Lfr/c3t/net/WatchedApplication;B)V event access$000 "(Lfr/c3t/net/ApplicationWatcher;)Z x0 access$100 #(Lfr/c3t/net/ApplicationWatcher;)[B access$200 :(Lfr/c3t/net/ApplicationWatcher;)Ljava/net/DatagramPacket; access$300 :(Lfr/c3t/net/ApplicationWatcher;)Ljava/net/DatagramSocket; access$400 E(Lfr/c3t/net/ApplicationWatcher;)Lfr/c3t/io/ByteArrayDataInputStream; access$500 L(Lfr/c3t/net/ApplicationWatcher;Ljava/net/InetAddress;ILjava/lang/String;Z)V x1 x2 x3 x4 access$600 <(Lfr/c3t/net/ApplicationWatcher;)Lfr/c3t/util/TaskProcessor; access$700 9(Lfr/c3t/net/ApplicationWatcher;Ljava/net/InetAddress;I)V access$800 access$900 B(Lfr/c3t/net/ApplicationWatcher;Lfr/c3t/net/WatchedApplication;Z)Z access$1000 access$1100 ()Lorg/apache/log4j/Logger; access$1200 :(Lfr/c3t/net/ApplicationWatcher;)Lfr/c3t/util/FastHashMap; access$1300 "(Lfr/c3t/net/ApplicationWatcher;)I access$1400 B(Lfr/c3t/net/ApplicationWatcher;Lfr/c3t/net/WatchedApplication;B)V access$1500 :(Lfr/c3t/net/ApplicationWatcher;)Lfr/c3t/util/FastHashSet; <clinit> SourceFile ApplicationWatcher.java ? ? ÷ ø ® ? ? ? ? ? ö ó é ê ô ó ò ó ? ? ä å ¥ ¦ © ª ¢ £ ¡ ¯ ° ´ µ fr/c3t/util/FastHashSet fr/c3t/util/FastHashMap java/util/Timer Application watcher timer ´¡ ? ? fr/c3t/util/TaskProcessor "Application watcher task processor ´¢ "ApplicationWatcher Event Processor ? ? java/net/DatagramPacket ´£ ¤ £ "fr/c3t/io/ByteArrayDataInputStream #fr/c3t/io/ByteArrayDataOutputStream ´ ¼ § ¨ java/net/DatagramSocket « ª¤¥¦ java/lang/StringBuilder #ApplicationWatcher started on port §¨§©ª«¬ java/lang/Thread fr/c3t/net/ApplicationWatcher$1 ´® Application watcher receiver ´¯° ¼±²³ µ fr/c3t/net/ApplicationWatcher´µ« .pingControlPeriod¶·¸¹ Î fr/c3t/net/ApplicationWatcher$2º»¼ µ½ µ¾¿ÀÁÂଠjava/util/LinkedListÄÅ ´ÆÇ ÎÈÉ ÎÊËÌ?ͦÎÏ fr/c3t/net/WatchedApplicationÐÑ ´ÒÓÂ Ú Û ½ ? ´ÔÕÖ java/io/IOException cannot send message ?!×ØÙ¦ Application §Ú requests connectionÛ Ü«ÝÞ connectedß Õàá 8connection controller refused connection of application ë ì $accepting connection of application â µã ¼ä µåæçèé ¼ *cannot send connection response message ?!Ãê disconnectedëêìíîïð $cannot send ping response message ?! (cannot send discover response message ?! fr/c3t/net/ApplicationWatcher$3 ´ñÁòóô java/lang/Object 2fr/c3t/net/ApplicationWatcher$ConnectionController java/util/Iterator java/lang/Throwable java/net/InetAddress (Ljava/lang/String;Z)V (Ljava/lang/String;)V ([BI)V org/apache/log4j/Logger isInfoEnabled ()Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; info (Ljava/lang/Object;)V "(Lfr/c3t/net/ApplicationWatcher;)V )(Ljava/lang/Runnable;Ljava/lang/String;)V setPriority setDaemon (Z)V start java/lang/Class getName java/lang/Integer getInteger ((Ljava/lang/String;I)Ljava/lang/Integer; intValue schedule (Ljava/util/TimerTask;JJ)V cancel die fr/c3t/net/SocketUtil close (Ljava/net/DatagramSocket;)V add (Ljava/lang/Object;)Z remove values ()Ljava/util/Collection; (Ljava/util/Collection;)V size java/lang/String length java/util/Collection iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; equalsIgnoreCase (Ljava/lang/String;)Z ,(Ljava/net/InetAddress;ILjava/lang/String;)V contains ([BILjava/net/InetAddress;I)V send (Ljava/net/DatagramPacket;)V error *(Ljava/lang/Object;Ljava/lang/Throwable;)V isDebugEnabled -(Ljava/lang/Object;)Ljava/lang/StringBuilder; debug getHostAddress put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; name acceptConnection +(Ljava/net/InetAddress;Ljava/lang/String;)Z reset writeInt flush getBuffer ()[B setAddress (Ljava/net/InetAddress;)V setPort &(Ljava/lang/Object;)Ljava/lang/Object; get java/lang/System currentTimeMillis ()J lastMessageDate J B(Lfr/c3t/net/ApplicationWatcher;BLfr/c3t/net/WatchedApplication;)V (Ljava/lang/Runnable;)V getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! ; } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ¡ ¢ £ ¤ £ ¥ ¦ § ¨ © ª « ª ¬ ® ? ¯ ° ± ? ? ? ² ? ? ? ³ ? ? ? $ ´ µ ¶ é ?*· *» Y· µ *» Y· µ *» Y· µ *» Y· µ *» Y· µ *ô¼µ *» Y*´ *´ ¾· µ *» Y¼YT· µ !*» "Y· #µ *» $Y· %µ &*µ ± · 6 ? g k o ( s 5 w B { K | _ } r ~ } ? ? ? ? ¸ ? ¹ º » ¼ ¶ ?*» 'Y· (µ *» 'Y· )µ *² ¶ +? ² » ,Y· -.¶ /¶ 0¶ 1¶ 2» 3Y» 4Y*· 56· 7M, ¶ 8,¶ 9,¶ :*» ,Y· - ;¶ <¶ /=¶ /¶ 1'¸ >¶ ?µ *´ » @Y*· A *´ lô`?¶ B± · . ? ? ¡ 9 ¦ K æ Q ç V è Z î ô ? ¸ ? ¹ º ? ½ ? K P ¾ ¿ À 9 Á Z  µ ¶ k )*µ *´ ¶ C*´ ¶ D*´ ¶ D*´ ¸ E*´ *¸ E± · ! ( ¸ ) ¹ º Ã Ä ¶ B *´ +¶ FW± · ¸ ¹ º Å Æ Ç Ä ¶ B *´ +¶ GW± · ¸ ¹ º Å Æ È É ¶ >