com.groupbyinc.flux.repositories.RepositoriesModule.class Maven / Gradle / Ivy
???? 4 ? 3com/groupbyinc/flux/repositories/RepositoriesModule 0com/groupbyinc/flux/common/inject/AbstractModule RepositoriesModule.java 3com/groupbyinc/flux/repositories/Repository$Factory +com/groupbyinc/flux/repositories/Repository Factory java/util/Map$Entry
java/util/Map
Entry %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup repositoryTypes Ljava/util/Map; XLjava/util/Map; s(Lcom/groupbyinc/flux/env/Environment;Ljava/util/List;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V ()V
java/util/HashMap
fs "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; $ %
# & ' h(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Lcom/groupbyinc/flux/repositories/Repository; ) lambda$new$0 ?(Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;)Lcom/groupbyinc/flux/repositories/Repository; + ,
- . create ?(Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)Lcom/groupbyinc/flux/repositories/Repository$Factory; 0 1 2 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 4 5 6 java/util/List 8 iterator ()Ljava/util/Iterator; : ; 9 < #com/groupbyinc/flux/env/Environment > 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry @ java/util/Iterator B hasNext ()Z D E C F next ()Ljava/lang/Object; H I C J ,com/groupbyinc/flux/plugins/RepositoryPlugin L getRepositories q(Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)Ljava/util/Map; N O M P entrySet ()Ljava/util/Set; R S T
java/util/Set V W < getKey Y I Z java/lang/String \ getValue ^ I _ "java/lang/IllegalArgumentException a java/lang/StringBuilder c
d Repository type [ f append -(Ljava/lang/String;)Ljava/lang/StringBuilder; h i
d j ] is already registered l toString ()Ljava/lang/String; n o
d p (Ljava/lang/String;)V r
b s java/util/Collections u unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; w x
v y { entry ^Ljava/util/Map$Entry; Ljava/util/Map$Entry; newRepoTypes
repoPlugin .Lcom/groupbyinc/flux/plugins/RepositoryPlugin; this 5Lcom/groupbyinc/flux/repositories/RepositoriesModule; env %Lcom/groupbyinc/flux/env/Environment; repoPlugins @Ljava/util/List; Ljava/util/List; namedXContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; factories configure 4com/groupbyinc/flux/repositories/RepositoriesService ? bind U(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/inject/binder/AnnotatedBindingBuilder; ? ?
? @com/groupbyinc/flux/common/inject/binder/AnnotatedBindingBuilder ? asEagerSingleton ? ? ? .com/groupbyinc/flux/snapshots/SnapshotsService ? 3com/groupbyinc/flux/snapshots/SnapshotShardsService ? Wcom/groupbyinc/flux/action/admin/cluster/snapshots/status/TransportNodesSnapshotsStatus ? ,com/groupbyinc/flux/snapshots/RestoreService ? binder ,()Lcom/groupbyinc/flux/common/inject/Binder; ? ?
? 9com/groupbyinc/flux/common/inject/multibindings/MapBinder ? newMapBinder ?(Lcom/groupbyinc/flux/common/inject/Binder;Ljava/lang/Class;Ljava/lang/Class;)Lcom/groupbyinc/flux/common/inject/multibindings/MapBinder; ? ?
? ? '(Ljava/lang/Object;Ljava/lang/Object;)V ? lambda$configure$1 ?(Lcom/groupbyinc/flux/common/inject/multibindings/MapBinder;Ljava/lang/String;Lcom/groupbyinc/flux/repositories/Repository$Factory;)V ? ?
? ? J(Ljava/lang/String;Lcom/groupbyinc/flux/repositories/Repository$Factory;)V ? accept \(Lcom/groupbyinc/flux/common/inject/multibindings/MapBinder;)Ljava/util/function/BiConsumer; ? ? ? forEach "(Ljava/util/function/BiConsumer;)V ? ? ? typesBinder ?Lcom/groupbyinc/flux/common/inject/multibindings/MapBinder; ;Lcom/groupbyinc/flux/common/inject/multibindings/MapBinder;
addBinding S(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/inject/binder/LinkedBindingBuilder; ? ?
? ? =com/groupbyinc/flux/common/inject/binder/LinkedBindingBuilder ?
toInstance (Ljava/lang/Object;)V ? ? ? ? k Ljava/lang/String; v 5Lcom/groupbyinc/flux/repositories/Repository$Factory; java/lang/Exception ? 0com/groupbyinc/flux/repositories/fs/FsRepository ? ?(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V ?
? ? metadata 9Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData; Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/env/Environment;Ljava/util/List;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V
Exceptions BootstrapMethods
SourceFile InnerClasses ! ? ? ?
?*? ? Y? :!+-? 3 ? 7 W,? = :? G ? ?? K ? M:+-? Q :? U ? X :? G ? Y? K ? : ? [ ? ] ? ` ? ? 7 ? ,? bY? dY? eg? k ? [ ? ]? km? k? q? t??????q*? z? |? ? R k G } G n ? <