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
    void createBucket​(java.lang.String bucket)  
    boolean fileExists​(java.lang.String path)  
    java.io.File getFile​(java.lang.String path)  
    java.io.InputStream getInputStream​(java.lang.String path)  
    void removeFile​(java.lang.String path)  
    void setFile​(java.lang.String path, java.io.File file)  
    void setInputStream​(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:
      getInputStream in interface RemoteFileStore
      Throws:
      java.lang.Exception
    • getFile

      public java.io.File getFile​(java.lang.String path) throws java.lang.Exception
      Specified by:
      getFile in interface RemoteFileStore
      Throws:
      java.lang.Exception
    • setInputStream

      public void setInputStream​(java.lang.String path, java.io.InputStream inputStream, long length) throws java.lang.Exception
      Specified by:
      setInputStream in interface RemoteFileStore
      Throws:
      java.lang.Exception
    • setFile

      public void setFile​(java.lang.String path, java.io.File file) throws java.lang.Exception
      Specified by:
      setFile in interface RemoteFileStore
      Throws:
      java.lang.Exception
    • fileExists

      public boolean fileExists​(java.lang.String path)
      Specified by:
      fileExists in interface RemoteFileStore
    • removeFile

      public void removeFile​(java.lang.String path) throws java.lang.Exception
      Specified by:
      removeFile in interface RemoteFileStore
      Throws:
      java.lang.Exception