public final class AwsContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
S3Directory |
directory |
DynamoDBClient |
dynamoDBClient |
| Modifier and Type | Method and Description |
|---|---|
static AwsContext |
create(com.amazonaws.services.s3.AmazonS3 s3,
java.lang.String bucketName,
java.lang.String rootDirectory,
com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
java.lang.String journalTableName,
java.lang.String lockTableName)
Creates the context used to interact with AWS services.
|
static AwsContext |
create(com.amazonaws.services.s3.AmazonS3 s3,
java.lang.String bucketName,
java.lang.String rootDirectory,
com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
java.lang.String journalTableName,
java.lang.String lockTableName,
DynamoDBProvisioningData provisioningData)
Creates the context used to interact with AWS services.
|
static AwsContext |
create(Configuration configuration)
Creates the context used to interact with AWS services.
|
java.lang.String |
getConfig() |
java.lang.String |
getPath(java.lang.String fileName) |
void |
setRemoteStoreMonitor(org.apache.jackrabbit.oak.segment.spi.monitor.RemoteStoreMonitor monitor) |
public final S3Directory directory
public final DynamoDBClient dynamoDBClient
public static AwsContext create(Configuration configuration) throws java.io.IOException
configuration - The configuration used to initialize the context.java.io.IOExceptionpublic static AwsContext create(com.amazonaws.services.s3.AmazonS3 s3, java.lang.String bucketName, java.lang.String rootDirectory, com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb, java.lang.String journalTableName, java.lang.String lockTableName) throws java.io.IOException
s3 - Client for accessing Amazon S3.bucketName - Name for the bucket that will store segments.rootDirectory - The root directory under which the segment store is
setup.ddb - Client for accessing Amazon DynamoDB.journalTableName - Name of table used for storing log entries for
journal and gc. The table will be created if it
doesn't already exist. It should have a partition key
on "DynamoDBClient.TABLE_ATTR_FILENAME" and sort key on
"DynamoDBClient.TABLE_ATTR_TIMESTAMP".lockTableName - Name of table used for managing the distributed lock.
The table will be created if it doesn't already
exist. It should have a partition key on
"DynamoDBClient.LOCKTABLE_KEY".java.io.IOExceptionpublic static AwsContext create(com.amazonaws.services.s3.AmazonS3 s3, java.lang.String bucketName, java.lang.String rootDirectory, com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb, java.lang.String journalTableName, java.lang.String lockTableName, DynamoDBProvisioningData provisioningData) throws java.io.IOException
s3 - Client for accessing Amazon S3.bucketName - Name for the bucket that will store segments.rootDirectory - The root directory under which the segment store is
setup.ddb - Client for accessing Amazon DynamoDB.journalTableName - Name of table used for storing log entries for
journal and gc. The table will be created if it
doesn't already exist. It should have a partition key
on "DynamoDBClient.TABLE_ATTR_FILENAME" and sort key on
"DynamoDBClient.TABLE_ATTR_TIMESTAMP".lockTableName - Name of table used for managing the distributed lock.
The table will be created if it doesn't already
exist. It should have a partition key on
"DynamoDBClient.LOCKTABLE_KEY".provisioningData - DynamoDB provisioning datajava.io.IOExceptionpublic void setRemoteStoreMonitor(org.apache.jackrabbit.oak.segment.spi.monitor.RemoteStoreMonitor monitor)
public java.lang.String getPath(java.lang.String fileName)
public java.lang.String getConfig()
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.