Search in sources :

Example 1 with S3ClientType

use of io.datarouter.aws.s3.S3ClientType in project datarouter by hotpads.

the class S3ClientNodeFactory method createInternal.

/*---------------- private ------------------*/
private S3Node createInternal(NodeParams<PathbeanKey, Pathbean, PathbeanFielder> nodeParams) {
    DatarouterS3Client client = s3ClientManager.getClient(nodeParams.getClientId());
    String bucket = nodeParams.getPhysicalName();
    Subpath path = nodeParams.getPath();
    var s3DirectoryManager = new S3DirectoryManager(client, bucket, path);
    return new S3Node(nodeParams, s3ClientType, client, s3DirectoryManager);
}
Also used : Subpath(io.datarouter.storage.util.Subpath) S3Node(io.datarouter.aws.s3.node.S3Node) DatarouterS3Client(io.datarouter.aws.s3.DatarouterS3Client) S3DirectoryManager(io.datarouter.aws.s3.node.S3DirectoryManager)

Aggregations

DatarouterS3Client (io.datarouter.aws.s3.DatarouterS3Client)1 S3DirectoryManager (io.datarouter.aws.s3.node.S3DirectoryManager)1 S3Node (io.datarouter.aws.s3.node.S3Node)1 Subpath (io.datarouter.storage.util.Subpath)1