Class ServiceConfig.Sftp

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

public static class ServiceConfig.Sftp extends Object implements ServiceConfig
Configuration for service sftp.
  • Field Details

    • acquireTimeout

      public final Duration acquireTimeout

      Time limit for waiting for an SFTP connection pool slot. Defaults to 10 seconds. Zero disables the limit.

    • connectTimeout

      public final Duration connectTimeout

      Time limit for each SFTP connection setup stage and each pooled connection health check. Defaults to 10 seconds. Zero disables the limit.

    • controlDirectory

      public final String controlDirectory

      Directory for the SSH control socket.

      The SSH client creates a temporary directory holding the control socket here. Defaults to $XDG_STATE_HOME or $HOME/.local/state, falling back to the current directory.

    • enableCopy

      public final Boolean enableCopy
      Deprecated.
      SFTP copy capability is enabled by default and this option is no longer needed.

      Deprecated: SFTP copy capability is enabled by default.

    • endpoint

      public final String endpoint

      endpoint of this backend

    • key

      public final String key

      key of this backend

    • knownHostsStrategy

      public final String knownHostsStrategy

      known_hosts_strategy of this backend

    • root

      public final String root

      root of this backend

    • user

      public final String user

      user of this backend

  • Constructor Details

    • Sftp

      public Sftp()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map