Package ai.djl.aws.s3

Class S3RepositoryFactory

  • All Implemented Interfaces:
    ai.djl.repository.RepositoryFactory

    public class S3RepositoryFactory
    extends java.lang.Object
    implements ai.djl.repository.RepositoryFactory
    A class responsible to create S3Repository instances.
    • Constructor Summary

      Constructors 
      Constructor Description
      S3RepositoryFactory()
      Creates an S3RepositoryFactory.
      S3RepositoryFactory​(software.amazon.awssdk.services.s3.S3Client client)
      Creates an S3RepositoryFactory instance with the specified S3Client.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getSupportedScheme()
      ai.djl.repository.Repository newInstance​(java.lang.String name, java.net.URI uri)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • S3RepositoryFactory

        public S3RepositoryFactory()
        Creates an S3RepositoryFactory.
      • S3RepositoryFactory

        public S3RepositoryFactory​(software.amazon.awssdk.services.s3.S3Client client)
        Creates an S3RepositoryFactory instance with the specified S3Client.
        Parameters:
        client - the S3Client
    • Method Detail

      • newInstance

        public ai.djl.repository.Repository newInstance​(java.lang.String name,
                                                        java.net.URI uri)
        Specified by:
        newInstance in interface ai.djl.repository.RepositoryFactory
      • getSupportedScheme

        public java.util.Set<java.lang.String> getSupportedScheme()
        Specified by:
        getSupportedScheme in interface ai.djl.repository.RepositoryFactory