| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--ostore.update.Action
        |
        +--ostore.update.ActionReplaceBlocks
This action replaces encryption-block sized blocks of data in a data object. It can only replace whole blocks of data at block boundaries. See ActionReplacePartialBlock (when it exists).
| Field Summary | |
|---|---|
static boolean | 
DEBUG
 | 
| Constructor Summary | |
|---|---|
ActionReplaceBlocks(InputBuffer buffer)
 | 
|
ActionReplaceBlocks(SecureHash target,
                    int num_blocks,
                    int block_offset,
                    int block_size,
                    byte[] data)
Construct an ActionReplaceBlocks action. | 
|
| Method Summary | |
|---|---|
 long | 
getLength()
getLength returns the length of the ActionReplaceBlocks. | 
 long | 
getOffset()
getOffset returns the offset of the ActionReplaceBlocks. | 
 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 ActionReplaceBlocks(SecureHash target,
                           int num_blocks,
                           int block_offset,
                           int block_size,
                           byte[] data)
ActionReplaceBlocks action.
target - the Aguid of the target data objectnum_blocks - the number of blocks to be replacedblock_offset - the block offset at which to start the replacementblock_size - the size of the blocks to be replaceddata - the data to be replaced.  The byte array must contain
      (num_blocks * block_size) bytes
      of data.
public ActionReplaceBlocks(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()
ActionReplaceBlocks.
getLength in class ActionctionReplaceBlockspublic long getOffset()
ActionReplaceBlocks.
ctionReplaceBlockspublic 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 | ||||||||||