Class S3Storage
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.s3mock.S3Storage
- All Implemented Interfaces:
de.iip_ecosphere.platform.deviceMgt.storage.Storage
- Direct Known Subclasses:
S3PackageStorage
public class S3Storage
extends Object
implements de.iip_ecosphere.platform.deviceMgt.storage.Storage
A S3Storage grants access to the storage through S3. For this purpose it uses
an Amazon S3 Client to communicate with the S3 storage. The storage can be set to a
fixed prefix, so it is only working with a subset of the bucket.
- Author:
- Dennis Pidun, University of Hildesheim, Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
prefix
-
client
private com.amazonaws.services.s3.AmazonS3 client -
bucket
-
-
Constructor Details
-
S3Storage
Creates a S3Storage.- Parameters:
prefix- the prefix to lock onclient- the connected clientbucket- the bucket
-
-
Method Details
-
getPrefix
- Specified by:
getPrefixin interfacede.iip_ecosphere.platform.deviceMgt.storage.Storage
-
list
- Specified by:
listin interfacede.iip_ecosphere.platform.deviceMgt.storage.Storage
-
generateDownloadUrl
- Specified by:
generateDownloadUrlin interfacede.iip_ecosphere.platform.deviceMgt.storage.Storage
-
storeFile
- Specified by:
storeFilein interfacede.iip_ecosphere.platform.deviceMgt.storage.Storage- Throws:
IOException
-