
com.groupbyinc.flux.repositories.fs.FsRepository.class Maven / Gradle / Ivy
???? 3 ? 0com/groupbyinc/flux/repositories/fs/FsRepository >com/groupbyinc/flux/repositories/blobstore/BlobStoreRepository FsRepository.java TYPE Ljava/lang/String; fs blobStore 5Lcom/groupbyinc/flux/common/blobstore/fs/FsBlobStore; chunkSize /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; basePath /Lcom/groupbyinc/flux/common/blobstore/BlobPath; compress Z ?(Lcom/groupbyinc/flux/repositories/RepositoryName;Lcom/groupbyinc/flux/repositories/RepositorySettings;Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository;Lcom/groupbyinc/flux/env/Environment;)V java/io/IOException *Lcom/groupbyinc/flux/common/inject/Inject; /com/groupbyinc/flux/repositories/RepositoryName getName ()Ljava/lang/String;
?(Ljava/lang/String;Lcom/groupbyinc/flux/repositories/RepositorySettings;Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository;)V
3com/groupbyinc/flux/repositories/RepositorySettings settings 0()Lcom/groupbyinc/flux/common/settings/Settings; " #
! $ location & .Lcom/groupbyinc/flux/common/settings/Settings; " ( ) repositories.fs.location + ,com/groupbyinc/flux/common/settings/Settings - get &(Ljava/lang/String;)Ljava/lang/String; / 0
. 1 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; / 3
. 4 logger -Lcom/groupbyinc/flux/common/logging/ESLogger; 6 7 8 ?the repository location is missing, it should point to a shared file system location that is available on all master and data nodes : java/lang/Object < +com/groupbyinc/flux/common/logging/ESLogger > warn ((Ljava/lang/String;[Ljava/lang/Object;)V @ A ? B 4com/groupbyinc/flux/repositories/RepositoryException D name F
G missing location I '(Ljava/lang/String;Ljava/lang/String;)V K
E L 8com/groupbyinc/flux/index/snapshots/IndexShardRepository N #com/groupbyinc/flux/env/Environment P java/lang/String R resolveRepoFile ((Ljava/lang/String;)Ljava/nio/file/Path; T U
Q V repoFiles ()[Ljava/nio/file/Path; X Y
Q Z mThe specified location [{}] doesn't start with any repository paths specified by the path.repo setting: [{}] \ java/lang/StringBuilder ^ ()V `
_ a
location [ c append -(Ljava/lang/String;)Ljava/lang/StringBuilder; e f
_ g ;] doesn't match any of the locations specified by path.repo i toString k
_ l java/nio/file/Path n ?The specified location [{}] should start with a repository path specified by the path.repo setting, but the path.repo setting was not set on this node p Y] doesn't match any of the locations specified by path.repo because this setting is empty r 3com/groupbyinc/flux/common/blobstore/fs/FsBlobStore t E(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;)V v
u w
y
chunk_size { repositories.fs.chunk_size } getAsBytesSize r(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; ?
. ?
? repositories.fs.compress ? java/lang/Boolean ? valueOf (Z)Ljava/lang/Boolean; ? ?
? ? getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; ? ?
. ? booleanValue ()Z ? ?
? ? ? -com/groupbyinc/flux/common/blobstore/BlobPath ? cleanPath 1()Lcom/groupbyinc/flux/common/blobstore/BlobPath; ? ?
? ? ? this 2Lcom/groupbyinc/flux/repositories/fs/FsRepository; 1Lcom/groupbyinc/flux/repositories/RepositoryName; repositorySettings 5Lcom/groupbyinc/flux/repositories/RepositorySettings; indexShardRepository :Lcom/groupbyinc/flux/index/snapshots/IndexShardRepository; environment %Lcom/groupbyinc/flux/env/Environment; locationFile Ljava/nio/file/Path; 2()Lcom/groupbyinc/flux/common/blobstore/BlobStore;
isCompress 1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions RuntimeVisibleAnnotations
SourceFile ! ?
? ? *+? ,-? ,? %'*? *,? 2? 5:? *? 9;? =? C ? EY+? HJ? M?? W:? ?? [?? D*? 9]? =YSY? [S? C ? EY+? H? _Y? bd? h? hj? h? m? M?*? 9q? =YS? C ? EY+? H? _Y? bd? h? hs? h? m? M?*? uY*? *? x? z*,? %|*? *~? ?? ?? ?*,? %?*? *?? ?? ?? ?? ?? ?*? ?? ?? ? H ? ? F ? ? ? ? ? ? ? I ? ? ? &