Class S3FileStore
java.lang.Object
org.teamapps.universaldb.index.fileng.S3FileStore
- All Implemented Interfaces:
RemoteFileStore
public class S3FileStore extends java.lang.Object implements RemoteFileStore
-
Constructor Summary
Constructors Constructor Description S3FileStore(java.lang.String bucketName, java.lang.String url, java.lang.String accessKey, java.lang.String secretKey) -
Method Summary
Modifier and Type Method Description voidcreateBucket(java.lang.String bucket)booleanfileExists(java.lang.String path)java.io.FilegetFile(java.lang.String path)java.io.InputStreamgetInputStream(java.lang.String path)voidremoveFile(java.lang.String path)voidsetFile(java.lang.String path, java.io.File file)voidsetInputStream(java.lang.String path, java.io.InputStream inputStream, long length)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
S3FileStore
public S3FileStore(java.lang.String bucketName, java.lang.String url, java.lang.String accessKey, java.lang.String secretKey) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
createBucket
public void createBucket(java.lang.String bucket) throws java.lang.Exception- Throws:
java.lang.Exception
-
getInputStream
public java.io.InputStream getInputStream(java.lang.String path) throws java.lang.Exception- Specified by:
getInputStreamin interfaceRemoteFileStore- Throws:
java.lang.Exception
-
getFile
public java.io.File getFile(java.lang.String path) throws java.lang.Exception- Specified by:
getFilein interfaceRemoteFileStore- Throws:
java.lang.Exception
-
setInputStream
public void setInputStream(java.lang.String path, java.io.InputStream inputStream, long length) throws java.lang.Exception- Specified by:
setInputStreamin interfaceRemoteFileStore- Throws:
java.lang.Exception
-
setFile
public void setFile(java.lang.String path, java.io.File file) throws java.lang.Exception- Specified by:
setFilein interfaceRemoteFileStore- Throws:
java.lang.Exception
-
fileExists
public boolean fileExists(java.lang.String path)- Specified by:
fileExistsin interfaceRemoteFileStore
-
removeFile
public void removeFile(java.lang.String path) throws java.lang.Exception- Specified by:
removeFilein interfaceRemoteFileStore- Throws:
java.lang.Exception
-