com.groupbyinc.flux.watcher.FileWatcher$FileObserver.class Maven / Gradle / Ivy
???? 4 ? 4com/groupbyinc/flux/watcher/FileWatcher$FileObserver java/lang/Object FileWatcher.java 'com/groupbyinc/flux/watcher/FileWatcher FileObserver file Ljava/nio/file/Path; exists Z length J lastModified isDirectory children 7[Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver; this$0 )Lcom/groupbyinc/flux/watcher/FileWatcher; @(Lcom/groupbyinc/flux/watcher/FileWatcher;Ljava/nio/file/Path;)V ()V
this 6Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver; checkAndNotify java/io/IOException ! # %
' ) java/nio/file/LinkOption + java/nio/file/Files - 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z /
. 0 +java/nio/file/attribute/BasicFileAttributes 2 readAttributes o(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes; 4 5
. 6 ()Z 8 3 9 size ()J ; < 3 = lastModifiedTime $()Ljava/nio/file/attribute/FileTime; ? @ 3 A java/nio/file/attribute/FileTime C toMillis E <
D F updateChildren H
I
onFileDeleted K
L onDirectoryCreated (Z)V N O
P onDirectoryDeleted R
S
onFileCreated U O
V
onFileChanged X
Y
attributes -Ljava/nio/file/attribute/BasicFileAttributes;
prevExists prevIsDirectory
prevLength prevLastModified init initial createChild M(Ljava/nio/file/Path;Z)Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver;
e a O
g child listFiles ()[Ljava/nio/file/Path; -com/groupbyinc/flux/common/io/FileSystemUtils l files +(Ljava/nio/file/Path;)[Ljava/nio/file/Path; n o
m p java/util/Arrays r sort ([Ljava/lang/Object;)V t u
s v [Ljava/nio/file/Path; listChildren :(Z)[Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver; j k
{ x c d
access$100 9()[Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver; ? ?
? i I ? java/nio/file/Path ? compareTo (Ljava/nio/file/Path;)I ? ? ? ?
? deleteChild (I)V ? ?
? compare newChildren java/lang/Exception ? listeners ()Ljava/util/List; ? ?
? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? 8 ? ? next ()Ljava/lang/Object; ? ? ? ? /com/groupbyinc/flux/watcher/FileChangesListener ?
onFileInit (Ljava/nio/file/Path;)V ? ? ? ? U ? ? ?
access$200 #()Lorg/apache/logging/log4j/Logger; ? ?
? #cannot notify file changes listener ? org/apache/logging/log4j/Logger ? warn *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? ? ? e Ljava/lang/Exception; listener 1Lcom/groupbyinc/flux/watcher/FileChangesListener; K ? ? ? X ? ? ? onDirectoryInit ? ? ? ? N ? ? ? y z
? R ? ? ?
access$000 :(Lcom/groupbyinc/flux/watcher/FileWatcher$FileObserver;Z)V x0 x1 Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses
? K *+? *? *,? ? ?
? S T U ? *? $<*? &=*? (B*? *7**? ? ,? 1? $*? $? M*? 3? ,? 7:*? : ? &*? &? * ? (* ? *? *? > ? (*? B ? G? *? *? &* ? (* ? *? d*? $? K*? &? ?
*? J? f*? M*? Q? Z? *? T*? W? J*? *?? !*? (?? 7*? Z? 0?
*? T? %*? M? *? $? *? &? *? Q? *? W? ? > : 8 [ \ ]
? ^ ? _ ? ` ? ? % X Y
Z [ ] $ _ + ` : a E b L c Q d Y f d g r i u j z k l ? p ? q ? r ? s ? u ? x ? y ? | ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !
? Y 3 ?
? " a O ? ? Z**? ? ,? 1? $*? $? F*? 3? ,? 7M*,? : ? &*? &? *? Q? *,? > ? (*,? B ? G? **? W? ? $ 5 [ \ Z Z b ? *
? ? ? $ ? . ? 5 ? = ? G ? T ? Y ? ? ? = 3? ? " c d ? d ? Y*? +? fN-? h-? ? *
b
i ? ?
? ? ? " j k ? J *? ? qL+? w+? ? n x ? ? ? ? ? " y z ? ? 7*? |M,? -,?? (,?? N6,?? -*,2? ?S????-?? ?? ? 4 ? ? 7 7 b 2 n x ? " ? ? ? ? ? + ? 1 ? 3 ? ? ? } ~? ? ? " H ? ? ?*? |L+? ?+?? ?+?? M>6+?? *? ??? w+?? 6? &*? ??? 6? *? ?2? +2? ? 6? *? ?2? ?,*? ?2S??? #? ,*+2? ?S?? *? ????*,? ?? =*? ??? *? ?????*? ?? ?? ? \ 3 ? ? B ? ? Y A ? ? ? ? ? i ? ? ? ? i ? ? ? n x ? v ? ? ? ? ? ? ) ? 0 ? 6 ? ? ? E ? Y ? ^ ? g ? q ? t ? z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ,
? } ~ ? ? ? ? ? ? " ? ? ? | .*? ?2? $? $*? ?2? &? *? ?2? T? *? ?2? M? ? . . i ? ? ? ? ? $ ? - ? ? $ U O ? ? P*? ? ?? ? M,? ? ? <,? ? ? ?N? -*? ? ? ?
-*? ? ? ? :? ??? ? ???? ; > ? ? * @ ? ? , ? ? P P b ? &