Class V2ClientTest

java.lang.Object
org.cdlib.mrt.s3v2.action.V2ClientTest

public class V2ClientTest 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

    • logger

      protected static final org.apache.logging.log4j.Logger logger
    • s3Type

      protected V2ClientTest.S3Type s3Type
    • s3AsyncClient

      protected software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient
    • s3Client

      protected software.amazon.awssdk.services.s3.S3Client s3Client
    • region

      protected software.amazon.awssdk.regions.Region region
  • Constructor Details

    • V2ClientTest

      protected V2ClientTest(V2ClientTest.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • V2ClientTest

      protected V2ClientTest(V2ClientTest.S3Type s3Type, software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
  • Method Details

    • getMinio

      public static V2ClientTest getMinio(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getSDSC

      public static V2ClientTest getSDSC(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getWasabi

      public static V2ClientTest getWasabi(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getAWS

      public static V2ClientTest getAWS() throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • asycClient

      public static software.amazon.awssdk.services.s3.S3AsyncClient asycClient(V2ClientTest.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • syncClient

      public static software.amazon.awssdk.services.s3.S3Client syncClient(software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • asyncClientDefaultOld

      public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultOld(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • asyncClientDefaultNew

      public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultNew(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • asyncClientDefaultCRT

      public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultCRT(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • syncClientDefault

      public static software.amazon.awssdk.services.s3.S3Client syncClientDefault(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • s3Client

      public software.amazon.awssdk.services.s3.S3Client s3Client()
    • s3AsyncClient

      public software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient()
    • getRegion

      public software.amazon.awssdk.regions.Region getRegion()