Class ServiceConfig.Goosefs

java.lang.Object
org.apache.opendal.ServiceConfig.Goosefs
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Goosefs extends Object implements ServiceConfig
Configuration for service goosefs.
  • Field Details

    • authType

      public final String authType

      Authentication type.

      Supported values: "nosasl", "simple". Default: "simple" — PLAIN SASL with username. "nosasl" — skip authentication entirely.

    • authUsername

      public final String authUsername

      Authentication username.

      Used in SIMPLE mode as the login identity. Default: current OS user ($USER / $USERNAME).

    • blockSize

      public final Long blockSize

      Block size in bytes for new files (default: 64 MiB).

    • chunkSize

      public final Long chunkSize

      Chunk size in bytes for streaming RPCs (default: 1 MiB).

    • masterAddr

      public final String masterAddr

      Master address(es) in host:port format.

      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 PollingMasterInquireClient to discover the Primary Master automatically.

      Resolution precedence at build() time (highest → lowest), following goosefs-sdk docs/CLIENT_CONFIGURATION.md §1:

      1. This field (when set on the builder / OpenDAL config map)
      2. GOOSEFS_MASTER_ADDR environment variable
      3. goosefs.master.rpc.addresses / goosefs.master.hostname in goosefs-site.properties

      build() fails with ConfigInvalid only when none of the above supplies a master address.

    • root

      public final String root

      Root path of this backend.

      All operations will happen under this root. Default to / if not set.

    • writeType

      public final String 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