com.groupbyinc.flux.usage.UsageService.class Maven / Gradle / Ivy
???? 4 z &com/groupbyinc/flux/usage/UsageService 6com/groupbyinc/flux/common/component/AbstractComponent UsageService.java %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup handlers Ljava/util/List; ; sinceTime J 1(Lcom/groupbyinc/flux/common/settings/Settings;)V *Lcom/groupbyinc/flux/common/inject/Inject;
java/util/ArrayList ()V
java/lang/System currentTimeMillis ()J
" this (Lcom/groupbyinc/flux/usage/UsageService; settings .Lcom/groupbyinc/flux/common/settings/Settings; addRestHandler -(Lcom/groupbyinc/flux/rest/BaseRestHandler;)V java/util/List * add (Ljava/lang/Object;)Z , - + . handler *Lcom/groupbyinc/flux/rest/BaseRestHandler;
getUsageStats r(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Z)Lcom/groupbyinc/flux/action/admin/cluster/node/usage/NodeUsage; java/util/HashMap 4
5 "java/lang/invoke/LambdaMetafactory 7 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; 9 :
8 ; < (Ljava/lang/Object;)V > lambda$getUsageStats$0 <(Ljava/util/Map;Lcom/groupbyinc/flux/rest/BaseRestHandler;)V @ A
B C ) accept .(Ljava/util/Map;)Ljava/util/function/Consumer; F G H forEach (Ljava/util/function/Consumer;)V J K + L
java/util/Map N =com/groupbyinc/flux/action/admin/cluster/node/usage/NodeUsage P D(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;JJLjava/util/Map;)V R
Q S restUsageMap 3Ljava/util/Map; Ljava/util/Map; localNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; restActions Z (com/groupbyinc/flux/rest/BaseRestHandler \
getUsageCount ^
] _ getName ()Ljava/lang/String; a b
] c java/lang/Long e valueOf (J)Ljava/lang/Long; g h
f i put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; k l O m
usageCount Signature Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable BootstrapMethods
SourceFile InnerClasses ! p
q X *+? *? Y? ? *? !? #? r $ % &