Class V2Client

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

public class V2Client 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 V2Client.S3Type s3Type
    • s3AsyncClient

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

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

      protected software.amazon.awssdk.services.s3.presigner.S3Presigner s3Presigner
    • region

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

    • V2Client

      protected V2Client(V2Client.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
    • V2Client

      protected V2Client(V2Client.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 V2Client getMinio(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getSDSC

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

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

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

      public static software.amazon.awssdk.services.s3.S3AsyncClient asycClient(V2Client.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
    • presigner

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

      public static software.amazon.awssdk.services.s3.presigner.S3Presigner presignerDefault(software.amazon.awssdk.regions.Region region) 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()
    • s3Presigner

      public software.amazon.awssdk.services.s3.presigner.S3Presigner s3Presigner()
    • getRegion

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

      public V2Client.S3Type getS3Type()