
com.groupbyinc.flux.common.cli.CheckFileCommand.class Maven / Gradle / Ivy
???? 3 ? /com/groupbyinc/flux/common/cli/CheckFileCommand .com/groupbyinc/flux/common/cli/CliTool$Command CheckFileCommand.java 1com/groupbyinc/flux/common/cli/CliTool$ExitStatus &com/groupbyinc/flux/common/cli/CliTool
ExitStatus java/util/Map$Entry
java/util/Map
Entry Command ,(Lcom/groupbyinc/flux/common/cli/Terminal;)V
this 1Lcom/groupbyinc/flux/common/cli/CheckFileCommand; terminal )Lcom/groupbyinc/flux/common/cli/Terminal; doExecute ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;)Lcom/groupbyinc/flux/common/cli/CliTool$ExitStatus; java/lang/Exception pathsForPermissionsCheck j(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;)[Ljava/nio/file/Path; execute java/io/IOException
" [Ljava/nio/file/Path; $
& 5com/groupbyinc/flux/common/google/common/collect/Maps ( newHashMapWithExpectedSize (I)Ljava/util/HashMap; * +
) , ,com/groupbyinc/flux/common/settings/Settings . #com/groupbyinc/flux/env/Environment 0 getFileStore /(Ljava/nio/file/Path;)Ljava/nio/file/FileStore; 2 3
1 4 .java/nio/file/attribute/PosixFileAttributeView 6 java/nio/file/FileStore 8 supportsFileAttributeView (Ljava/lang/Class;)Z : ;
9 < +java/nio/file/attribute/PosixFileAttributes > java/nio/file/LinkOption @ java/nio/file/Files B readAttributes o(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes; D E
C F permissions ()Ljava/util/Set; H I ? J put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; L M N owner )()Ljava/nio/file/attribute/UserPrincipal; P Q ? R %java/nio/file/attribute/UserPrincipal T getName ()Ljava/lang/String; V W U X group *()Ljava/nio/file/attribute/GroupPrincipal; Z [ ? \ &java/nio/file/attribute/GroupPrincipal ^ _ X java/nio/file/Path a entrySet c I d
java/util/Set f iterator ()Ljava/util/Iterator; h i g j java/util/Iterator l hasNext ()Z n o m p next ()Ljava/lang/Object; r s m t getKey v s w exists 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z y z
C { getValue } s ~ getPosixFilePermissions @(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/util/Set; ? ?
C ? equals (Ljava/lang/Object;)Z ? ? g ? ? ;The file permissions of [%s] have changed from [%s] to [%s] ? java/lang/Object ? ,java/nio/file/attribute/PosixFilePermissions ? toString #(Ljava/util/Set;)Ljava/lang/String; ? ?
? ? 'com/groupbyinc/flux/common/cli/Terminal ? printWarn ((Ljava/lang/String;[Ljava/lang/Object;)V ? ?
? ? WPlease ensure that the user account running Elasticsearch has read access to this file! ? java/lang/String ? getOwner X(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/UserPrincipal; ? ?
C ?
? ? 9WARN: Owner of file [%s] used to be [%s], but now is [%s] ? 9WARN: Group of file [%s] used to be [%s], but now is [%s] ?
attributes -Ljava/nio/file/attribute/PosixFileAttributes; supportsPosixPermissions Z path Ljava/nio/file/Path; permissionsBeforeWrite >Ljava/util/Set; Ljava/util/Set; permissionsAfterWrite entry iLjava/util/Map$Entry;>; Ljava/util/Map$Entry; ownerBeforeWrite Ljava/lang/String; ownerAfterWrite =Ljava/util/Map$Entry; groupBeforeWrite groupAfterWrite settings .Lcom/groupbyinc/flux/common/settings/Settings; env %Lcom/groupbyinc/flux/env/Environment; paths cLjava/util/Map;>; Ljava/util/Map; owners 7Ljava/util/Map; groups status 3Lcom/groupbyinc/flux/common/cli/CliTool$ExitStatus; Code LocalVariableTable LineNumberTable
Exceptions LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses! ? > *+? ? ? ?
1 2 ? ? ? ?
?*+,? #N-? -??
*+,? '?-?? -:-?? -:-?? -:-? ?-?? ?-:?66 ? s 2:
? 57? =6? P
?? A? G? ?:
? K ? O W
? S ? Y ? O W
? ] ? ` ? O W? :? ???*+,? ':? e ? k :? q ? ?? u ? : ? x ? b? A? |? ??? ? ? g:
? x ? b? A? ?:
? ? ? 7*? ??? ?Y ? x SY
? ?SY? ?S? ?*? ??? ?? ???t? e ? k :? q ? x? u ? : ? x ? b? A? |? ??? ? ? ?:
? x ? b? A? ?? Y :
? ?? $*? ??? ?Y ? x SY
SYS? ????? e ? k :? q ? ?? u ? : ? x ? b? A? |? ??? ? ? ?:
? x ? b?? A? G? ?? ] ? ` :
? ?? $*? ??? ?Y ? x SY
SYS? ???z? N ? ? ! ? ? o = ? ? Z R ? ? N c ? ?
S ? ?
@ ? ? ? v ? ? ? C ? ?
? + ? ? ? f ? ? 0 M ? ?
R + ? ?
p ? ? ? ? ? ? ? ? ? | ? $ e H ? %^ ? ? ,W ? ? ?? ? ? ? R S ? ?
@ ? ? ? v ? ? ? f ? ?
p ? ? e H ? %^ ? ? ,W ? ? ? ? . B D E H I % J , L 5 M N O Z P _ Q o R ? S ? T ? X ? V ? M ? \ ? _ ? ` ? a ? d e f% g3 hI gL iY k\ n? o? p? s? t? u? v? x? {
|! }$ ?0 ?R ?\ ?} ?? ? ? s ? %? (
/ 1 % % ? k bB !? ? ? m? , ? ^? ?
m? , ? N? ?
m? , ? X? ? ? ?
@
© 2015 - 2025 Weber Informatics LLC | Privacy Policy