public class ExpiringBucketLifecycleManager extends AbstractBucketLifecycleManager
Modifier and Type | Class and Description |
---|---|
static class |
ExpiringBucketLifecycleManager.DescriptorImpl
Denotes this is an
AbstractUpload plugin |
AbstractUpload.UploadSpec
Constructor and Description |
---|
ExpiringBucketLifecycleManager(String bucket,
UploadModule module,
Integer ttl,
String bucketNameWithVars,
Integer bucketObjectTTL)
Construct the simple lifecycle manager from a TLL and the common properties.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.api.services.storage.model.Bucket |
checkBucket(com.google.api.services.storage.model.Bucket bucket)
This is intended to be an identity function that throws when the input is not adequately
annotated.
|
protected com.google.api.services.storage.model.Bucket |
decorateBucket(com.google.api.services.storage.model.Bucket bucket)
A hook by which extensions may annotate a new or existing bucket.
|
String |
getDetails() |
int |
getTtl() |
getDescriptor, getInclusions, getOrCreateBucket
all, annotateObject, forResult, getBucket, getMetadata, getModule, getPathPrefix, isForFailedJobs, isSharedPublicly, isShowInline, perform, perform, setForFailedJobs, setPathPrefix, setSharedPublicly, setShowInline
@DataBoundConstructor public ExpiringBucketLifecycleManager(String bucket, @Nullable UploadModule module, Integer ttl, @Deprecated @Nullable String bucketNameWithVars, @Deprecated @Nullable Integer bucketObjectTTL)
bucket
- GCS Bucket in which to alter the time to live.module
- Helper class methods to use for execution.ttl
- The number of days after which to delete data stored in the GCS bucket.bucketNameWithVars
- Legacy name for bucket. Deprecated.bucketObjectTTL
- Legacy name for ttl. Deprecated.public String getDetails()
getDetails
in class AbstractUpload
protected com.google.api.services.storage.model.Bucket checkBucket(com.google.api.services.storage.model.Bucket bucket) throws InvalidAnnotationException
checkBucket
in class AbstractBucketLifecycleManager
bucket
- the pre-existing bucket whose annotations to validate.InvalidAnnotationException
- if not annotated properly.protected com.google.api.services.storage.model.Bucket decorateBucket(com.google.api.services.storage.model.Bucket bucket)
decorateBucket
in class AbstractBucketLifecycleManager
bucket
- The bucket to annotate and return.public int getTtl()
Copyright © 2016–2020. All rights reserved.