Class ServiceConfig.Goosefs
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.Cacache, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Gcs, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Tos, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringAuthentication type.final StringAuthentication username.final LongBlock size in bytes for new files (default: 64 MiB).final LongChunk size in bytes for streaming RPCs (default: 1 MiB).final StringMaster address(es) inhost:portformat.final StringRoot path of this backend.final StringDefault write type for new files. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
authType
Authentication type.
Supported values:
"nosasl","simple". Default:"simple"— PLAIN SASL with username."nosasl"— skip authentication entirely. -
authUsername
Authentication username.
Used in SIMPLE mode as the login identity. Default: current OS user (
$USER/$USERNAME). -
blockSize
Block size in bytes for new files (default: 64 MiB).
-
chunkSize
Chunk size in bytes for streaming RPCs (default: 1 MiB).
-
masterAddr
Master address(es) in
host:portformat.For single master:
"10.0.0.1:9200"For HA (comma-separated):"10.0.0.1:9200,10.0.0.2:9200,10.0.0.3:9200"When multiple addresses are provided, the client uses
PollingMasterInquireClientto discover the Primary Master automatically.Resolution precedence at
build()time (highest → lowest), followinggoosefs-sdkdocs/CLIENT_CONFIGURATION.md§1:- This field (when set on the builder / OpenDAL config map)
GOOSEFS_MASTER_ADDRenvironment variablegoosefs.master.rpc.addresses/goosefs.master.hostnameingoosefs-site.properties
build()fails withConfigInvalidonly when none of the above supplies a master address. -
root
Root path of this backend.
All operations will happen under this root. Default to
/if not set. -
writeType
Default write type for new files.
Supported values:
"must_cache","cache_through","through","async_through". Default:"must_cache".
-
-
Constructor Details
-
Goosefs
public Goosefs()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-