public class ExpiringBucketLifecycleManager extends AbstractBucketLifecycleManager
Modifier and Type | Class and Description |
---|---|
static class |
ExpiringBucketLifecycleManager.DescriptorImpl
Denotes this is an
AbstractUpload plugin |
AbstractUpload.UploadSpec
module
Constructor and Description |
---|
ExpiringBucketLifecycleManager(String bucketNameWithVars,
UploadModule module,
int 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.
|
int |
getBucketObjectTTL()
Surface the TTL for objects contained within the bucket for roundtripping
to the jelly UI.
|
String |
getDetails()
Provide detail information summarizing this download for the GCS
upload report.
|
getDescriptor, getInclusions, getOrCreateBucket
all, annotateObject, forResult, getBucketNameWithVars, getMetadata, getRelative, isForFailedJobs, isSharedPublicly, perform
@DataBoundConstructor public ExpiringBucketLifecycleManager(String bucketNameWithVars, @Nullable UploadModule module, int bucketObjectTTL)
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 validateInvalidAnnotationException
- if not annotated properlyprotected 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 returnpublic int getBucketObjectTTL()
Copyright © 2004-2014. All Rights Reserved.