Class TestAWSNodeIO

java.lang.Object
org.cdlib.mrt.s3v2.test.TestAWSNodeIO

public class TestAWSNodeIO extends Object
Before running this Java V2 code example, set up your development environment, including your credentials.

For more information, see the following documentation topic:

https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html

  • Field Details

  • Constructor Details

    • TestAWSNodeIO

      public TestAWSNodeIO()
  • Method Details

    • main

      public static void main(String[] args) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • test_node

      public static void test_node(long nodeID, String key, String sha256, String upFilePath, String downFilePth, org.cdlib.mrt.utility.LoggerInf log) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getMeta

      public static Properties getMeta(String header, CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • doPutObject

      protected static CloudResponse doPutObject(CloudStoreInf client, String bucketName, String key, String filePath, String sha256) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • testPutObject

      protected static void testPutObject(CloudStoreInf client, String bucketName, String key, String putFilePath, String sha256) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • testGetObject

      protected static void testGetObject(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • doDelete

      public static CloudResponse doDelete(CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • doPresign

      public static URL doPresign(CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • testPresign

      public static void testPresign(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • url2file

      public static int url2file(org.cdlib.mrt.utility.LoggerInf logger, URL presign, File preFile, int retry) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • testState

      public static void testState(CloudStoreInf client, String bucketName, String key, String sha256, String upFilePath, String downDirPath, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getClientNodeIO

      public static NodeIO.AccessNode getClientNodeIO(long nodeID) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException