class AWSGateway extends AutoCloseable with CloudStorage

Linear Supertypes
CloudStorage, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AWSGateway
  2. CloudStorage
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AWSGateway(accessKeyId: String = ..., secretAccessKey: String = ..., sessionToken: String = ..., awsProfile: String = ..., region: String = ..., credentialsType: String = "private")

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val client: AmazonS3
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def close(): Unit
    Definition Classes
    AWSGateway → AutoCloseable
  8. def copyFileToBucket(bucketName: String, destinationPath: String, inputStream: InputStream): Unit
    Definition Classes
    AWSGateway → CloudStorage
  9. def copyInputStreamToBucket(bucketName: String, filePath: String, sourceFilePath: String): Unit
    Definition Classes
    AWSGateway → CloudStorage
  10. def doesBucketPathExist(bucketName: String, filePath: String): Boolean
    Definition Classes
    AWSGateway → CloudStorage
  11. def doesS3ObjectExist(bucket: String, s3FilePath: String): Boolean

    Kept with its 7.0 signature for callers built against it.

  12. def downloadFilesFromBucketToDirectory(bucketName: String, filePath: String, directoryPath: String, isIndex: Boolean = false): Unit
    Definition Classes
    AWSGateway → CloudStorage
  13. lazy val downloadThreads: Int

    How many concurrent HTTP range requests a single object download may use.

    How many concurrent HTTP range requests a single object download may use.

    A lazy val rather than a def: ConfigLoader memoises its values, so this cannot change during the life of the JVM, and computing it once means an out-of-range setting is reported once rather than on every download.

    Attributes
    protected
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getMetadata(s3Path: String, folder: String, bucket: String): List[ResourceMetadata]
  19. def getS3DownloadSize(s3Path: String, folder: String, fileName: String, bucket: String): Option[Long]
  20. def getS3File(parts: String*): String
  21. def getS3Object(bucket: String, s3FilePath: String): S3Object
  22. def getS3Object(bucket: String, s3FilePath: String, tmpFile: File, objectMetadata: Option[ObjectMetadata] = None, showProgress: Boolean = true): Unit

    Downloads an S3 object, splitting it across several parallel HTTP range requests.

    Downloads an S3 object, splitting it across several parallel HTTP range requests.

    A single connection is throughput-limited on a high-latency link, where each TCP flow needs a long time to open its congestion window; splitting the object into contiguous ranges recovers most of that loss. Unlike a multipart-aware transfer, this works on any object whatever way it was uploaded, and honours the configured connection count exactly rather than being capped by the object's part count.

    Small objects keep to one connection, since the extra round trips cost more than they save. Any failure falls back to the single-connection path rather than propagating, so this can only be faster or equal, never a new source of download errors. Integrity does not rest on a checksum, since almost no public model publishes one: every range must deliver exactly its own bytes from the object version the HEAD measured (an If-Match pin), so a short, overlong or mixed-version download fails here and falls back instead of passing silently.

    objectMetadata

    already-fetched metadata for this object, when the caller has it; supplying it avoids a second HEAD request for the content length.

    showProgress

    whether to draw a progress bar. The bar is for downloads the user asked for by name; an internal fetch such as the models index should pass false, so the console does not report progress against a file nobody requested.

  23. def getS3Object(bucket: String, s3FilePath: String, tmpFile: File): ObjectMetadata

    Kept with its 7.0 signature for callers built against it.

    Kept with its 7.0 signature for callers built against it. Downloads through the ranged path and returns the object's metadata, as it always did, and like 7.0 shows no progress.

  24. def getS3ObjectMetadata(bucket: String, s3FilePath: String): Option[ObjectMetadata]

    A HEAD request.

    A HEAD request. Returns None for a missing object, so callers can use it both as an existence check and as the source of the content length a ranged download needs -- one round trip instead of two.

  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def listS3Files(bucket: String, s3Path: String): Array[S3ObjectSummary]
  28. val logger: Logger
    Attributes
    protected
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def parallelDownloadTimeoutMillis: Long

    How long one ranged download may take before it is abandoned for a single connection.

    How long one ranged download may take before it is abandoned for a single connection.

    Attributes
    protected
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from CloudStorage

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped