public interface Buckets
| Modifier and Type | Method and Description |
|---|---|
BucketList |
adjustAllocationPercentages(Experiment experiment,
Bucket newBucket)
Adjust allocation percentage for buckets within the specified experiment.
|
BucketList |
combineOldAndNewBuckets(BucketList oldBuckets,
BucketList newBuckets)
Go through the list of old buckets and replace them with the new buckets.
|
Bucket |
createBucket(Experiment.ID experimentId,
Bucket newBucket,
UserInfo user)
Creates a new bucket for the specified experiment by adding the
specified metadata to the database.
|
void |
deleteBucket(Experiment.ID experimentId,
Bucket.Label bucketLabel,
UserInfo user)
Deletes a bucket by removing its metadata from the database.
|
Bucket |
getBucket(Experiment.ID experimentId,
Bucket.Label bucketLabel)
Queries the database and returns metadata for the specified bucket in
the specified experiment.
|
Bucket.Builder |
getBucketBuilder(Experiment.ID experimentID,
Bucket.Label bucketLabel)
Get bucket with the specified bucketLabel and experimentID from the database and return
Bucket.Builder based on that. |
List<Bucket.BucketAuditInfo> |
getBucketChangeList(Bucket bucket,
Bucket updates,
Bucket.Builder builder)
Build a bucket change list and return it as a list of
Bucket.BucketAuditInfo. |
BucketList |
getBuckets(Experiment.ID experimentId)
Queries the database and returns a list of buckets with metadata for
the specified experiment.
|
Bucket |
updateBucket(Experiment.ID experimentId,
Bucket.Label bucketLabel,
Bucket updates,
UserInfo user)
Updates a bucket by updating the specified metadata in the database.
|
BucketList |
updateBucketAllocBatch(Experiment.ID experimentID,
BucketList bucketList)
Updates new allocation percentages for the list of buckets within the specified experiment
|
BucketList |
updateBucketBatch(Experiment.ID experimentID,
BucketList bucketList,
UserInfo user)
Updates list of buckets in batch with the specified metadata in the database.
|
Bucket |
updateBucketState(Experiment.ID experimentID,
Bucket.Label bucketLabel,
Bucket.State desiredState,
UserInfo user)
Updates a bucket's state by updating the specified metadata in the database.
|
void |
validateBucketChanges(Bucket bucket,
Bucket updates)
Validate bucket changes with the specified metadata
|
Bucket createBucket(Experiment.ID experimentId, Bucket newBucket, UserInfo user)
experimentId - the unique experiment idnewBucket - Bucket object containing bucket metadatauser - the UserInfo who created the bucketvoid deleteBucket(Experiment.ID experimentId, Bucket.Label bucketLabel, UserInfo user)
experimentId - the unique experiment idbucketLabel - the unique bucket iduser - the UserInfo who deleted the BucketBucket getBucket(Experiment.ID experimentId, Bucket.Label bucketLabel)
experimentId - the unique experiment idbucketLabel - the unique bucket idBucketList getBuckets(Experiment.ID experimentId)
experimentId - the unique experiment idBucket updateBucket(Experiment.ID experimentId, Bucket.Label bucketLabel, Bucket updates, UserInfo user)
experimentId - the unique experiment idbucketLabel - the unique bucket idupdates - Bucket object containing bucket metadata to be
updateduser - the UserInfo who triggered the changeBucketList updateBucketAllocBatch(Experiment.ID experimentID, BucketList bucketList)
experimentID - the unique experiment idbucketList - List of BucketsBucketList adjustAllocationPercentages(Experiment experiment, Bucket newBucket)
experiment - ExperimentnewBucket - The new Bucket containing the new allocation percentageBucket updateBucketState(Experiment.ID experimentID, Bucket.Label bucketLabel, Bucket.State desiredState, UserInfo user)
experimentID - the unique experiment idbucketLabel - the unique bucket iddesiredState - the desired stateuser - the UserInfo who updated the stateBucketList updateBucketBatch(Experiment.ID experimentID, BucketList bucketList, UserInfo user)
experimentID - the unique experiment idbucketList - List of Bucketsuser - the UserInfo who updated the Bucketsvoid validateBucketChanges(Bucket bucket, Bucket updates)
bucket - Current bucketupdates - Bucket with the new metadataIllegalArgumentException - if trying to update experimentID, bucket label or bucket stateList<Bucket.BucketAuditInfo> getBucketChangeList(Bucket bucket, Bucket updates, Bucket.Builder builder)
Bucket.BucketAuditInfo.bucket - Current Bucketupdates - Bucket updatesbuilder - Bucket.BuilderBucket.BucketAuditInfo.Bucket.Builder getBucketBuilder(Experiment.ID experimentID, Bucket.Label bucketLabel)
Bucket.Builder based on that.experimentID - the unique experiment idbucketLabel - Bucket labelBucketList combineOldAndNewBuckets(BucketList oldBuckets, BucketList newBuckets)
oldBuckets - Old bucket listnewBuckets - New bucket listCopyright © 2016. All rights reserved.