com.groupbyinc.flux.repositories.fs.FsRepository.class Maven / Gradle / Ivy
???? 4 ? 0com/groupbyinc/flux/repositories/fs/FsRepository >com/groupbyinc/flux/repositories/blobstore/BlobStoreRepository FsRepository.java 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property TYPE Ljava/lang/String; fs
LOCATION_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ALcom/groupbyinc/flux/common/settings/Setting; REPOSITORIES_LOCATION_SETTING CHUNK_SIZE_SETTING ^Lcom/groupbyinc/flux/common/settings/Setting; REPOSITORIES_CHUNK_SIZE_SETTING COMPRESS_SETTING BLcom/groupbyinc/flux/common/settings/Setting; REPOSITORIES_COMPRESS_SETTING environment %Lcom/groupbyinc/flux/env/Environment; chunkSize /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; basePath /Lcom/groupbyinc/flux/common/blobstore/BlobPath; compress Z ?(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V #com/groupbyinc/flux/env/Environment # settings 0()Lcom/groupbyinc/flux/common/settings/Settings; % &
$ ' ?(Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V ! )
* , . 7com/groupbyinc/flux/cluster/metadata/RepositoryMetaData 0
1 ' get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; 3 4
5 java/lang/String 7 isEmpty ()Z 9 :
8 ; logger !Lorg/apache/logging/log4j/Logger; = > ? ?the repository location is missing, it should point to a shared file system location that is available on all master and data nodes A org/apache/logging/log4j/Logger C warn (Ljava/lang/String;)V E F D G 4com/groupbyinc/flux/repositories/RepositoryException I name ()Ljava/lang/String; K L
1 M missing location O '(Ljava/lang/String;Ljava/lang/String;)V ! Q
J R 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry T resolveRepoFile ((Ljava/lang/String;)Ljava/nio/file/Path; V W
$ X repoFiles ()[Ljava/nio/file/Path; Z [
$ \ mThe specified location [{}] doesn't start with any repository paths specified by the path.repo setting: [{}] ^ 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V E ` D a java/lang/StringBuilder c ()V ! e
d f
location [ h append -(Ljava/lang/String;)Ljava/lang/StringBuilder; j k
d l ;] doesn't match any of the locations specified by path.repo n toString p L
d q java/nio/file/Path s ?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 u '(Ljava/lang/String;Ljava/lang/Object;)V E w D x Y] doesn't match any of the locations specified by path.repo because this setting is empty z | exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z ~
? -com/groupbyinc/flux/common/unit/ByteSizeValue ? ? ? .Lcom/groupbyinc/flux/common/settings/Settings; % ? ? ? java/lang/Boolean ? ? booleanValue ? :
? ? ? -com/groupbyinc/flux/common/blobstore/BlobPath ? cleanPath 1()Lcom/groupbyinc/flux/common/blobstore/BlobPath; ? ?
? ? ? this 2Lcom/groupbyinc/flux/repositories/fs/FsRepository; metadata 9Lcom/groupbyinc/flux/cluster/metadata/RepositoryMetaData; namedXContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; location locationFile Ljava/nio/file/Path; createBlobStore 2()Lcom/groupbyinc/flux/common/blobstore/BlobStore; java/lang/Exception ? ? ? ? 3com/groupbyinc/flux/common/blobstore/fs/FsBlobStore ? E(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;)V ! ?
? ?
isCompress 1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue; ? ? java/util/function/Function ? identity ()Ljava/util/function/Function; ? ? ? ? NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property; ? ? ? {(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V ! ?
? ? repositories.fs.location ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V ! ?
?
chunk_size ???????? (J)V ! ?
? ? byteSizeSetting(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting; ? ?
? repositories.fs.chunk_size ? boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting; ? ?
? repositories.fs.compress ?
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ? ? ? ? ? ? ? ! " ? % '*+,? (-? +*,? -? /+? 2? 6? 8:?