public class BucketCreateRequestMessage extends BucketRequestMessage<BucketCreateReplyMessage>
bucketID
messageID, navigationPath
Modifier | Constructor and Description |
---|---|
|
BucketCreateRequestMessage()
Creates a new instance of BucketCreateRequestMessage.
|
protected |
BucketCreateRequestMessage(boolean useParameters,
java.lang.Class<? extends LocalBucket> storageClass,
java.util.Map<java.lang.String,java.lang.Object> storageClassParams,
long capacity,
long softCapacity)
Internal constructor setting all the parameters.
|
|
BucketCreateRequestMessage(java.lang.Class<? extends LocalBucket> storageClass,
java.util.Map<java.lang.String,java.lang.Object> storageClassParams,
long capacity,
long softCapacity)
If this constructor is used, a bucket given parameters is created.
|
|
BucketCreateRequestMessage(long capacity,
long softCapacity)
If this constructor is used, a bucket with default class and params is created
but with specified capacity and soft capacity.
|
Modifier and Type | Method and Description |
---|---|
BucketCreateReplyMessage |
execute(BucketDispatcher bucketDispatcher)
Executes this request on the specified bucket dispatcher.
|
java.lang.Class<BucketCreateReplyMessage> |
replyMessageClass()
Returns the class of the reply message that is received as a response to this request message.
|
clone, deregisterOperStats, equals, getDestination, getMessageID, getNavigationPathLength, getOriginalSender, getPathElements, getSender, getSenderList, hashCode, registerBoundStat, registerBoundStat, setNavigationPathStatistics, toString
public BucketCreateRequestMessage()
public BucketCreateRequestMessage(long capacity, long softCapacity)
capacity
- capacity of the new bucketsoftCapacity
- soft capacity of the new bucketpublic BucketCreateRequestMessage(java.lang.Class<? extends LocalBucket> storageClass, java.util.Map<java.lang.String,java.lang.Object> storageClassParams, long capacity, long softCapacity)
storageClass
- storage classstorageClassParams
- parameters of the new storagecapacity
- capacity of the new bucketsoftCapacity
- soft capacity of the new bucketprotected BucketCreateRequestMessage(boolean useParameters, java.lang.Class<? extends LocalBucket> storageClass, java.util.Map<java.lang.String,java.lang.Object> storageClassParams, long capacity, long softCapacity)
public BucketCreateReplyMessage execute(BucketDispatcher bucketDispatcher) throws BucketStorageException
BucketRequestMessage
execute
in class BucketRequestMessage<BucketCreateReplyMessage>
bucketDispatcher
- the dispatcher that can provide the bucket of for the requestBucketStorageException
- if there was an error processing this requestpublic java.lang.Class<BucketCreateReplyMessage> replyMessageClass()
BucketRequestMessage
replyMessageClass
in class BucketRequestMessage<BucketCreateReplyMessage>