class AWSGateway extends AutoCloseable with CloudStorage
- Alphabetic
- By Inheritance
- AWSGateway
- CloudStorage
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AWSGateway(accessKeyId: String = ..., secretAccessKey: String = ..., sessionToken: String = ..., awsProfile: String = ..., region: String = ..., credentialsType: String = "private")
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val client: AmazonS3
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close(): Unit
- Definition Classes
- AWSGateway → AutoCloseable
-
def
copyFileToBucket(bucketName: String, destinationPath: String, inputStream: InputStream): Unit
- Definition Classes
- AWSGateway → CloudStorage
-
def
copyInputStreamToBucket(bucketName: String, filePath: String, sourceFilePath: String): Unit
- Definition Classes
- AWSGateway → CloudStorage
-
def
doesBucketPathExist(bucketName: String, filePath: String): Boolean
- Definition Classes
- AWSGateway → CloudStorage
-
def
doesS3ObjectExist(bucket: String, s3FilePath: String): Boolean
Kept with its 7.0 signature for callers built against it.
-
def
downloadFilesFromBucketToDirectory(bucketName: String, filePath: String, directoryPath: String, isIndex: Boolean = false): Unit
- Definition Classes
- AWSGateway → CloudStorage
-
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 valrather than adef: 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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getMetadata(s3Path: String, folder: String, bucket: String): List[ResourceMetadata]
- def getS3DownloadSize(s3Path: String, folder: String, fileName: String, bucket: String): Option[Long]
- def getS3File(parts: String*): String
- def getS3Object(bucket: String, s3FilePath: String): S3Object
-
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.
-
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.
-
def
getS3ObjectMetadata(bucket: String, s3FilePath: String): Option[ObjectMetadata]
A HEAD request.
A HEAD request. Returns
Nonefor 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. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listS3Files(bucket: String, s3Path: String): Array[S3ObjectSummary]
-
val
logger: Logger
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()