public class ExpiringBucketLifecycleManager extends AbstractBucketLifecycleManager
Modifier and Type | Class and Description |
---|---|
static class |
ExpiringBucketLifecycleManager.DescriptorImpl
Denotes this is an
AbstractUpload plugin |
AbstractUpload.UploadSpec
MAX_REMOTE_CREDENTIAL_EXPIRED_RETRIES, module
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()
Provide detail information summarizing this download for the GCS
upload report.
|
int |
getTtl()
Surface the TTL for objects contained within the bucket for roundtripping
to the jelly UI.
|
getDescriptor, getInclusions, getOrCreateBucket
all, annotateObject, forResult, getBucket, getMetadata, getPathPrefix, getRelative, getStrippedFilename, isForFailedJobs, isSharedPublicly, isShowInline, perform
@DataBoundConstructor public ExpiringBucketLifecycleManager(String bucket, @Nullable UploadModule module, Integer ttl, @Deprecated @Nullable String bucketNameWithVars, @Deprecated @Nullable Integer 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 getTtl()
Copyright © 2016–2017. All rights reserved.