public class BucketSplitReplyMessage extends BucketReplyMessage implements SplitResult
messageID, navigationPath
Constructor and Description |
---|
BucketSplitReplyMessage(BucketSplitRequestMessage message,
java.util.List<Bucket> newBuckets,
int objectsMoved)
Creates a new instance of BucketCreateReplyMessage for the supplied data.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Bucket> |
getBuckets(BucketDispatcher netbucketDisp)
Returns the list remote buckets for the newly created buckets (the list can contain nulls).
|
int |
getObjectsMoved()
Returns the number of objects moved from the split bucket to the newly created ones.
|
SplitPolicy |
getSplitPolicy()
Returns the used split policy that can contain output values.
|
clone, toString
deregisterOperStats, equals, getDestination, getMessageID, getNavigationPathLength, getOriginalSender, getPathElements, getSender, getSenderList, hashCode, registerBoundStat, registerBoundStat, setNavigationPathStatistics
public BucketSplitReplyMessage(BucketSplitRequestMessage message, java.util.List<Bucket> newBuckets, int objectsMoved)
message
- the original message this message is response tobucketID
- the ID of the bucket that was created on the remote network nodecapacity
- the capacity of the created bucketpublic java.util.List<? extends Bucket> getBuckets(BucketDispatcher netbucketDisp) throws CapacityFullException
SplitPolicy.getPartitionsCount()
.getBuckets
in interface SplitResult
netbucketDisp
- the network bucket dispatcher that will handle the remote bucket's processingCapacityFullException
- if no bucket was created on the remote network nodepublic SplitPolicy getSplitPolicy()
getSplitPolicy
in interface SplitResult
public int getObjectsMoved()
getObjectsMoved
in interface SplitResult