Class FkRegion

  • All Implemented Interfaces:
    Region

    @Immutable
    @Loggable(1)
    public final class FkRegion
    extends Object
    implements Region
    Mock/fake region.
    Since:
    0.6
    Version:
    $Id: b3e142e4420ad2d332a40d1fb81edd2579678067 $
    Author:
    Yegor Bugayenko (yegor256@gmail.com)
    • Constructor Detail

      • FkRegion

        public FkRegion​(Path file)
        Ctor.
        Parameters:
        file - Directory to keep files in
        Since:
        0.17
      • FkRegion

        public FkRegion​(String file)
        Ctor.
        Parameters:
        file - Directory to keep files in
        Since:
        0.17
      • FkRegion

        public FkRegion​(File file)
        Ctor.
        Parameters:
        file - Directory to keep files in
        Since:
        0.8.1
    • Method Detail

      • bucket

        public Bucket bucket​(String name)
        Description copied from interface: Region
        Get bucket.
        Specified by:
        bucket in interface Region
        Parameters:
        name - Name of the bucket to get
        Returns:
        Bucket
      • aws

        public com.amazonaws.services.s3.AmazonS3 aws()
        Description copied from interface: Region
        Get a client.
        Specified by:
        aws in interface Region
        Returns:
        Amazon S3