public final class AwsContext extends 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,
String bucketName,
String rootDirectory,
com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String journalTableName,
String lockTableName)
Creates the context used to interact with AWS services.
|
static AwsContext |
create(com.amazonaws.services.s3.AmazonS3 s3,
String bucketName,
String rootDirectory,
com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String journalTableName,
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.
|
String |
getConfig() |
String |
getPath(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 IOException
configuration - The configuration used to initialize the context.IOExceptionpublic static AwsContext create(com.amazonaws.services.s3.AmazonS3 s3, String bucketName, String rootDirectory, com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb, String journalTableName, String lockTableName) throws 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".IOExceptionpublic static AwsContext create(com.amazonaws.services.s3.AmazonS3 s3, String bucketName, String rootDirectory, com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb, String journalTableName, String lockTableName, DynamoDBProvisioningData provisioningData) throws 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 dataIOExceptionpublic void setRemoteStoreMonitor(org.apache.jackrabbit.oak.segment.spi.monitor.RemoteStoreMonitor monitor)
public String getConfig()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.