public interface ViPRS3
| Modifier and Type | Method and Description |
|---|---|
AppendObjectResult |
appendObject(AppendObjectRequest request)
Appends to an existing object.
|
AppendObjectResult |
appendObject(java.lang.String bucketName,
java.lang.String key,
java.io.File file)
Appends to an existing object.
|
AppendObjectResult |
appendObject(java.lang.String bucketName,
java.lang.String key,
java.io.InputStream input,
com.amazonaws.services.s3.model.ObjectMetadata metadata)
Appends to an existing object.
|
BucketFileAccessModeResult |
getBucketFileAccessMode(java.lang.String bucketName)
Checks the current file access mode on a bucket.
|
GetFileAccessResult |
getFileAccess(GetFileAccessRequest request)
Gets file access information for the keys in a bucket.
|
ListDataNodesResult |
listDataNodes(ListDataNodesRequest request)
Lists all active ViPR data services nodes (hosts) in the ViPR cluster.
|
BucketFileAccessModeResult |
setBucketFileAccessMode(SetBucketFileAccessModeRequest request)
Initiates a set file access mode request on a bucket.
|
UpdateObjectResult |
updateObject(java.lang.String bucketName,
java.lang.String key,
java.io.File file,
long startOffset)
Updates an existing object.
|
UpdateObjectResult |
updateObject(java.lang.String bucketName,
java.lang.String key,
java.io.InputStream input,
com.amazonaws.services.s3.model.ObjectMetadata metadata,
long startOffset)
Updates an existing object.
|
UpdateObjectResult |
updateObject(UpdateObjectRequest request)
Updates an existing object.
|
UpdateObjectResult updateObject(java.lang.String bucketName, java.lang.String key, java.io.File file, long startOffset) throws com.amazonaws.AmazonClientException
bucketName - The name of an existing bucket, to which you have
Permission.Write permission.key - The key in the bucket to update.file - The file containing the data to use for the update.startOffset - The starting offset within the object to apply the update.UpdateObjectResult containing the data returned from
ViPR.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.UpdateObjectResult updateObject(java.lang.String bucketName, java.lang.String key, java.io.InputStream input, com.amazonaws.services.s3.model.ObjectMetadata metadata, long startOffset) throws com.amazonaws.AmazonClientException
bucketName - The name of an existing bucket, to which you have
Permission.Write permission.key - The key in the bucket to update.input - The input stream containing the data to be uploaded.metadata - Additional metadata for the upload. Generally, the most
important property here is the Content-Length of the input
stream. If you do not size the input stream, the client will
be forced to buffer the entire stream into memory and size it
before uploading. This can lead to OutOfMemoryErrors.startOffset - The starting offset within the object to apply the update.UpdateObjectResult containing the data returned from
ViPR.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.UpdateObjectResult updateObject(UpdateObjectRequest request) throws com.amazonaws.AmazonClientException
request - The configured UpdateObjectRequest to execute.UpdateObjectResult containing the data returned from
ViPR.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.AppendObjectResult appendObject(java.lang.String bucketName, java.lang.String key, java.io.File file) throws com.amazonaws.AmazonClientException
AppendObjectResult.getAppendOffset(). If you must append at an
exact location, use updateObject but note in that case with concurrent
writes, the last writer will "win".bucketName - The name of an existing bucket, to which you have
Permission.Write permission.key - The key in the bucket to append to.file - The file containing the data to use for the append.AppendObjectResult containing the data returned from
ViPR including the actual append offset.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.AppendObjectResult appendObject(java.lang.String bucketName, java.lang.String key, java.io.InputStream input, com.amazonaws.services.s3.model.ObjectMetadata metadata) throws com.amazonaws.AmazonClientException
AppendObjectResult.getAppendOffset(). If you must append at an
exact location, use updateObject but note in that case with concurrent
writes, the last writer will "win".bucketName - The name of an existing bucket, to which you have
Permission.Write permission.key - The key in the bucket to append to.input - The input stream containing the data to be appended.metadata - Additional metadata for the upload. Generally, the most
important property here is the Content-Length of the input
stream. If you do not size the input stream, the client will
be forced to buffer the entire stream into memory and size it
before sending. This can lead to OutOfMemoryErrors.AppendObjectResult containing the data returned from
ViPR including the actual append offset.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.AppendObjectResult appendObject(AppendObjectRequest request) throws com.amazonaws.AmazonClientException
AppendObjectResult.getAppendOffset(). If you must append at an
exact location, use updateObject but note in that case with concurrent
writes, the last writer will "win".request - the configured AppendObjectRequest to execute.AppendObjectResult containing the data returned from
ViPR including the actual append offset.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.BucketFileAccessModeResult setBucketFileAccessMode(SetBucketFileAccessModeRequest request) throws com.amazonaws.AmazonClientException
request - The configured SetBucketFileAccessModeRequest request
to execute.BucketFileAccessModeResult
containing the results of the access mode change.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request. Generally, this will happen if the given transition
is not valid.BucketFileAccessModeResult getBucketFileAccessMode(java.lang.String bucketName) throws com.amazonaws.AmazonClientException
bucketName - the name of the bucket to check.BucketFileAccessModeResult object containing the
current file access mode for the bucket.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.GetFileAccessResult getFileAccess(GetFileAccessRequest request) throws com.amazonaws.AmazonClientException
GetFileAccessResult.isTruncated().request - the configured GetFileAccessRequest request to
execute.GetFileAccessResult object containing the object file
access information.com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.ListDataNodesResult listDataNodes(ListDataNodesRequest request) throws com.amazonaws.AmazonClientException
request - the configured ListDataNodesRequest request to
execute.ListDataNodesResult object containing the list of data services endpoints (hosts).com.amazonaws.AmazonClientException - If any errors are encountered in the client while making the
request or handling the response.com.amazonaws.AmazonServiceException - If any errors occurred in on the server while processing the
request.