com.groupbyinc.flux.monitor.fs.FsProbe.class Maven / Gradle / Ivy
???? 4~ &com/groupbyinc/flux/monitor/fs/FsProbe 6com/groupbyinc/flux/common/component/AbstractComponent FsProbe.java 0com/groupbyinc/flux/env/NodeEnvironment$NodePath 'com/groupbyinc/flux/env/NodeEnvironment NodePath *com/groupbyinc/flux/monitor/fs/FsInfo$Path %com/groupbyinc/flux/monitor/fs/FsInfo
Path -com/groupbyinc/flux/monitor/fs/FsInfo$IoStats IoStats 1com/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats DeviceStats %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup nodeEnv )Lcom/groupbyinc/flux/env/NodeEnvironment; Z(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
" this (Lcom/groupbyinc/flux/monitor/fs/FsProbe; settings .Lcom/groupbyinc/flux/common/settings/Settings; stats y(Lcom/groupbyinc/flux/monitor/fs/FsInfo;Lcom/groupbyinc/flux/cluster/ClusterInfo;)Lcom/groupbyinc/flux/monitor/fs/FsInfo; java/io/IOException * %Lcom/groupbyinc/flux/common/Nullable; hasNodeFile ()Z - .
/ java/lang/System 1 currentTimeMillis ()J 3 4
2 5 `(JLcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats;[Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path;)V 7
8 nodePaths 5()[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; : ;
< 3[Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; > -[Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path; @ getFSInfo `(Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath;)Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path; B C
D 7com/groupbyinc/flux/common/apache/lucene/util/Constants F LINUX Z H I G J java/util/HashSet L ()V N
M O
java/util/Set Q majorDeviceNumber I S T U minorDeviceNumber W T X java/lang/Integer Z valueOf (I)Ljava/lang/Integer; \ ]
[ ^ (com/groupbyinc/flux/common/collect/Tuple ` tuple P(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/Tuple; b c
a d add (Ljava/lang/Object;)Z f g R h ioStats g(Ljava/util/Set;Lcom/groupbyinc/flux/monitor/fs/FsInfo;)Lcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats; j k
l 'com/groupbyinc/flux/cluster/ClusterInfo n getNodeLeastAvailableDiskUsages 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; p q
o r nodeId ()Ljava/lang/String; t u
v 3com/groupbyinc/flux/common/collect/ImmutableOpenMap x get &(Ljava/lang/Object;)Ljava/lang/Object; z {
y | %com/groupbyinc/flux/cluster/DiskUsage ~ getNodeMostAvailableDiskUsages ? q
o ? ?(JLcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats;[Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path;Lcom/groupbyinc/flux/cluster/DiskUsage;Lcom/groupbyinc/flux/cluster/DiskUsage;)V ?
? i devicesNumbers cLjava/util/Set;>; Ljava/util/Set; previous 'Lcom/groupbyinc/flux/monitor/fs/FsInfo; clusterInfo )Lcom/groupbyinc/flux/cluster/ClusterInfo;
dataLocations paths /Lcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats; leastDiskEstimate 'Lcom/groupbyinc/flux/cluster/DiskUsage; mostDiskEstimate java/lang/Exception ? java/util/HashMap ?
? O
getIoStats 1()Lcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats; ? ?
? devicesStats 4[Lcom/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats; ? ? ?
java/util/Map ? U X put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? java/util/ArrayList ?
? O readProcDiskStats ()Ljava/util/List; ? ?
? java/util/List ? isEmpty ? . ? ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? . ? ? next ()Ljava/lang/Object; ? ? ? ? java/lang/String ? trim ? u
? ? \s+ ? split '(Ljava/lang/String;)[Ljava/lang/String; ? ?
? ? parseInt (Ljava/lang/String;)I ? ?
[ ? contains ? g R ? [Ljava/lang/String; ? java/lang/Long ? parseLong (Ljava/lang/String;)J ? ?
? ? ? | N(IILjava/lang/String;JJJJLcom/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats;)V ?
? ? h size ()I ? ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? ? 7([Lcom/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats;)V ?
? logger !Lorg/apache/logging/log4j/Logger; ? ? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? ? lambda$ioStats$0 #(Ljava/util/Set;)Ljava/lang/Object; ? ?
? ? 9(Ljava/util/Set;)Lorg/apache/logging/log4j/util/Supplier; z ? ? org/apache/logging/log4j/Logger debug @(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V deviceStats 3Lcom/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats; fields
deviceName Ljava/lang/String; readsCompleted J sectorsRead writesCompleted sectorsWritten line deviceMap ?Ljava/util/Map;Lcom/groupbyinc/flux/monitor/fs/FsInfo$DeviceStats;>; Ljava/util/Map; ELjava/util/List; Ljava/util/List; lines $Ljava/util/List; e Ljava/lang/Exception; .Lcom/groupbyinc/flux/common/SuppressForbidden; reason read /proc/diskstats /proc/diskstats 'com/groupbyinc/flux/common/io/PathUtils ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; z"
!# java/nio/file/Files% readAllLines &(Ljava/nio/file/Path;)Ljava/util/List;'(
&) adjustForHugeFilesystems (J)J??????? bytes
O path Ljava/nio/file/Path;12 3 java/nio/file/Path5 toAbsolutePath ()Ljava/nio/file/Path;7869 toString; u6<1 > fileStore Ljava/nio/file/FileStore;@A B java/nio/file/FileStoreD
getTotalSpaceF 4
EG+,
I totalK
L getUnallocatedSpaceN 4
EO freeQ
R getUsableSpaceT 4
EU availableW
X typeZ u
E[Z ] java/lang/Object_
`< mountb c nodePath 2Lcom/groupbyinc/flux/env/NodeEnvironment$NodePath; fsPath ,Lcom/groupbyinc/flux/monitor/fs/FsInfo$Path; 5org/apache/logging/log4j/message/ParameterizedMessagei >unexpected exception processing /proc/diskstats for devices {}k '(Ljava/lang/String;Ljava/lang/Object;)V m
jn Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions "RuntimeVisibleParameterAnnotations Signature ?(Ljava/util/Set;>;Lcom/groupbyinc/flux/monitor/fs/FsInfo;)Lcom/groupbyinc/flux/monitor/fs/FsInfo$IoStats; &()Ljava/util/List; RuntimeInvisibleAnnotations BootstrapMethods
SourceFile InnerClasses ! p Q *+? !*,? #? q $ % &