|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.update.Action
|
+--ostore.update.ActionAppendBlocks
This action appends encryption-block sized blocks of data to a data object. It can only append whole blocks of data to a data object which ends on an encryption block boundary. See ActionAppendPartialBlock (when it exists).
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
ActionAppendBlocks(InputBuffer buffer)
|
|
ActionAppendBlocks(SecureHash target,
int num_blocks,
int block_size,
byte[] data)
Construct an ActionAppendBlocks action. |
|
| Method Summary | |
|---|---|
long |
getLength()
getLength returns the length of the ActionAppendBlocks. |
Set |
getTargets()
|
void |
perform(GuidVersionMap guid_map,
VersionHandleCache version_cache,
UpdateContinuation continuation,
DataCache cache)
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
Return a representation of this action as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final boolean DEBUG
| Constructor Detail |
public ActionAppendBlocks(SecureHash target,
int num_blocks,
int block_size,
byte[] data)
ActionAppendBlocks action.
target - the Aguid of the target data objectnum_blocks - the number of blocks to be appendedblock_size - the size of the blocks to be appendeddata - the data to be appended. The byte array must contain
(num_blocks * block_size) bytes
of data.
public ActionAppendBlocks(InputBuffer buffer)
throws QSException
| Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializableserialize in class Actionbuffer - the output buffer to add the object to
public void perform(GuidVersionMap guid_map,
VersionHandleCache version_cache,
UpdateContinuation continuation,
DataCache cache)
throws ostore.update.UpdateException
perform in class Actionostore.update.UpdateExceptionpublic long getLength()
ActionAppendBlocks.
getLength in class ActionActionAppendBlockspublic Set getTargets()
getTargets in class Actionpublic String toString()
Action
toString in class Action
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||