com.groupbyinc.flux.repositories.RepositoriesService.class Maven / Gradle / Ivy
???? 4 4com/groupbyinc/flux/repositories/RepositoriesService 6com/groupbyinc/flux/common/component/AbstractComponent /com/groupbyinc/flux/cluster/ClusterStateApplier RepositoriesService.java Ccom/groupbyinc/flux/repositories/RepositoriesService$VerifyResponse VerifyResponse Pcom/groupbyinc/flux/repositories/RepositoriesService$UnregisterRepositoryRequest UnregisterRepositoryRequest Ncom/groupbyinc/flux/repositories/RepositoriesService$RegisterRepositoryRequest RegisterRepositoryRequest Xcom/groupbyinc/flux/repositories/RepositoriesService$VerifyingRegisterRepositoryListener #VerifyingRegisterRepositoryListener 6com/groupbyinc/flux/repositories/RepositoriesService$3 6com/groupbyinc/flux/repositories/RepositoriesService$2 6com/groupbyinc/flux/repositories/RepositoriesService$1 3com/groupbyinc/flux/repositories/Repository$Factory +com/groupbyinc/flux/repositories/Repository Factory java/util/Map$Entry
java/util/Map ! Entry 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom $ -com/groupbyinc/flux/cluster/metadata/MetaData & Custom %java/lang/invoke/MethodHandles$Lookup ) java/lang/invoke/MethodHandles + Lookup
typesRegistry Ljava/util/Map; XLjava/util/Map; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; verifyAction =Lcom/groupbyinc/flux/repositories/VerifyNodeRepositoryAction; repositories PLjava/util/Map; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Ljava/util/Map;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 7 :
; java/util/Collections = emptyMap ()Ljava/util/Map; ? @
> A 5 / C . / E 1 2 G .com/groupbyinc/flux/cluster/node/DiscoveryNode I
isDataNode 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z K L
J M isMasterNode O L
J P ,com/groupbyinc/flux/common/settings/Settings R 2com/groupbyinc/flux/cluster/service/ClusterService T .com/groupbyinc/flux/transport/TransportService V addStateApplier 4(Lcom/groupbyinc/flux/cluster/ClusterStateApplier;)V X Y
U Z ;com/groupbyinc/flux/repositories/VerifyNodeRepositoryAction \ ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/repositories/RepositoriesService;)V 7 ^
] _ 3 4 a this 6Lcom/groupbyinc/flux/repositories/RepositoriesService; settings .Lcom/groupbyinc/flux/common/settings/Settings; transportService 0Lcom/groupbyinc/flux/transport/TransportService; registerRepository ~(Lcom/groupbyinc/flux/repositories/RepositoriesService$RegisterRepositoryRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 7com/groupbyinc/flux/cluster/metadata/RepositoryMetaData k name Ljava/lang/String; m n o type q n r e f t U(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V 7 v
l w verify Z y z { v(Lcom/groupbyinc/flux/repositories/RepositoriesService;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V 7 }
~ )com/groupbyinc/flux/action/ActionListener ? cause ? n ?(Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/repositories/RepositoriesService$RegisterRepositoryRequest;Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)V 7 ?
? submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V ? ?
U ? registrationListener iLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; request PLcom/groupbyinc/flux/repositories/RepositoriesService$RegisterRepositoryRequest; listener newRepositoryMetaData 9Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData; unregisterRepository ?(Lcom/groupbyinc/flux/repositories/RepositoriesService$UnregisterRepositoryRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?(Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/repositories/RepositoriesService$UnregisterRepositoryRequest;)V 7 ?
? RLcom/groupbyinc/flux/repositories/RepositoriesService$UnregisterRepositoryRequest; verifyRepository @(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/Exception ?
repository A(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/Repository; ? ?
? startVerification ()Ljava/lang/String; ? ? ? ?(Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/repositories/Repository;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V 7 ?
? R(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V y ?
] ? java/lang/String ? endVerification (Ljava/lang/String;)V ? ? ?
addSuppressed (Ljava/lang/Throwable;)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; ? ?
? ? ? ()Ljava/lang/Object; ? lambda$verifyRepository$0 &(Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? get <(Ljava/lang/String;)Lorg/apache/logging/log4j/util/Supplier; ? ? ? org/apache/logging/log4j/Logger ? warn @(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? ? ? ? onFailure (Ljava/lang/Exception;)V ? ? ? ? 4com/groupbyinc/flux/repositories/VerificationFailure ? k([Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;[Lcom/groupbyinc/flux/repositories/VerificationFailure;)V 7 ?
?
onResponse (Ljava/lang/Object;)V ? ? ? ? inner Ljava/lang/Exception; e verificationToken repositoryName rLcom/groupbyinc/flux/action/ActionListener; -Lcom/groupbyinc/flux/repositories/Repository; applyClusterState 4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V 4com/groupbyinc/flux/repositories/RepositoryException ? /com/groupbyinc/flux/cluster/ClusterChangedEvent ?
previousState ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? (com/groupbyinc/flux/cluster/ClusterState ? getMetaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? 5 custom J(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom; ? ?
' ? 9com/groupbyinc/flux/cluster/metadata/RepositoriesMetaData ? state ? ?
? ? equals (Ljava/lang/Object;)Z
? 8processing new index repositories for state version [{}] version ()J
? java/lang/Long valueOf (J)Ljava/lang/Long;
trace '(Ljava/lang/String;Ljava/lang/Object;)V ? java/util/HashMap ()V 7
entrySet ()Ljava/util/Set; "
java/util/Set iterator ()Ljava/util/Iterator; !" java/util/Iterator$ hasNext ()Z&'%( next* ?%+ getKey- ? . M(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData; ?0
?1 unregistering repository [{}]3 debug5 ?6 getValue8 ? 9 closeRepository 0(Lcom/groupbyinc/flux/repositories/Repository;)V;<
= put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?@ "A ()Ljava/util/List; 5C
?D java/util/ListFG" m ?
lI &(Ljava/lang/Object;)Ljava/lang/Object; ?K "L getMetadata ;()Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;NO P q ?
lR
? 0()Lcom/groupbyinc/flux/common/settings/Settings; eU
lV
S updating repository [{}]Y createRepository h(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Lcom/groupbyinc/flux/repositories/Repository;[\
] lambda$applyClusterState$1 M(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Ljava/lang/Object;_`
ab c(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Lorg/apache/logging/log4j/util/Supplier; ?d e lambda$applyClusterState$2g`
hi e registering repository [{}]l unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;no
>p failure updating cluster state r *(Ljava/lang/String;Ljava/lang/Throwable;)V ?t ?u entry VLjava/util/Map$Entry; Ljava/util/Map$Entry; ex 6Lcom/groupbyinc/flux/repositories/RepositoryException; previousMetadata repositoryMetaData oldMetaData ;Lcom/groupbyinc/flux/cluster/metadata/RepositoriesMetaData; newMetaData survivors builder event 1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent; ;com/groupbyinc/flux/repositories/RepositoryMissingException? 7 ?
?? <(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Z java/io/IOException? (Ljava/util/Map;)V 7?
? previous newRepo newRepositories closing repository [{}][{}]? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V5? ?? close? ? creating repository [{}][{}]? java/lang/StringBuilder?
? repository type [? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? ] does not exist? toString? ?
?? '(Ljava/lang/String;Ljava/lang/String;)V 7?
?? create?\ ? start? ? lambda$createRepository$3?`
?? e failed to create repository? <(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V 7?
?? factory 5Lcom/groupbyinc/flux/repositories/Repository$Factory; ensureRepositoryNotInUse ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)V .com/groupbyinc/flux/snapshots/SnapshotsService? isRepositoryInUse ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Z??
?? ,com/groupbyinc/flux/snapshots/RestoreService?
?? java/lang/IllegalStateException? Atrying to modify or unregister repository that is currently used ?
?? clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; 5org/apache/logging/log4j/message/ParameterizedMessage? $failed to create repository [{}][{}]? 7?
?? failed to create repository [{}]? 7
?? failed to change repository [{}]? -[{}] failed to finish repository verification?
access$000 u(Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)V??
? x0 x1 x2
access$100 r(Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Z i?
?
access$200 Y(Lcom/groupbyinc/flux/repositories/RepositoriesService;)Lorg/apache/logging/log4j/Logger;
access$300
access$400
access$500
access$600
access$700 Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Ljava/util/Map;)V RuntimeVisibleAnnotations ?(Lcom/groupbyinc/flux/repositories/RepositoriesService$RegisterRepositoryRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Lcom/groupbyinc/flux/repositories/RepositoriesService$UnregisterRepositoryRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V
Exceptions BootstrapMethods
SourceFile InnerClasses ! . / ? 0 1 2 3 4 B 5 / ? 6 7 8 ? ? :*+? <*? B? D*? F*,? H+? N?
+? Q? ,*? [*? ]Y+-,*? `? b? ? 4 : c d : e f : 1 2 : g h : . / ? : . 0 ? " E @ F G J % K * M 9 N? ? % S U W " ? ?? 9 i j ? ? I? lY+? p+? s+? u? xN+? |? ? Y*+? p,? :? ,:*? H+? ?? Y*++-? ?? ?? ? > * ? ? I c d I ? ? I ? ? 5 ? ? 0 ? ? ? * ? ? I ? ? 0 ? ? ? Z ] ^ - ` 0 c H ?? ? - l? ?? ? ? ? ? k *? H+? ?? Y*+,+? ?? ?? ? c d ? ? ? ? ? ? ? ?
? ?? ? ? ? ? ?
?*+? ?N-? ? :? O*? b+? Y*-+,? ?? ?? J:-? ? ? :? ?*? ?+? ? ? ? ,? ? ? ,? Y? J? ط ۹ ? ?
:,? ? ? * - ? / 7 : ? t w ? ? R <