ostore.update
Class ActionExpand

java.lang.Object
  |
  +--ostore.update.Action
        |
        +--ostore.update.ActionExpand
All Implemented Interfaces:
QuickSerializable

public class ActionExpand
extends Action

This action truncates a data object. The resulting object is zero bytes in length and all data previously in the object is lost.

Version:
$Id: ActionExpand.java,v 1.21 2002/08/27 20:11:52 eaton Exp $
Author:
Patrick R. Eaton

Field Summary
static boolean DEBUG
           
 
Constructor Summary
ActionExpand(InputBuffer buffer)
           
ActionExpand(SecureHash aguid, long length)
          Construct an ActionExpand action.
 
Method Summary
 long getLength()
          getLength returns the length of the ActionExpand.
 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

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

ActionExpand

public ActionExpand(SecureHash aguid,
                    long length)
Construct an ActionExpand action.

Parameters:
aguid - the Aguid of the target data object
length - the length to which the action will expand the data object

ActionExpand

public ActionExpand(InputBuffer buffer)
             throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class Action
Parameters:
buffer - the output buffer to add the object to

perform

public void perform(GuidVersionMap guid_map,
                    VersionHandleCache version_cache,
                    UpdateContinuation continuation,
                    DataCache cache)
             throws ostore.update.UpdateException
Overrides:
perform in class Action
ostore.update.UpdateException

getLength

public long getLength()
getLength returns the length of the ActionExpand.

Specified by:
getLength in class Action
Returns:
length of ActionExpand

getTargets

public Set getTargets()
Overrides:
getTargets in class Action

toString

public String toString()
Description copied from class: Action
Return a representation of this action as a string.

Specified by:
toString in class Action
Returns:
a string representation of this action