ostore.update
Class Action

java.lang.Object
  |
  +--ostore.update.Action
All Implemented Interfaces:
QuickSerializable
Direct Known Subclasses:
ActionAppendBlocks, ActionExpand, ActionReplaceBlocks, ActionSetMetadata, ActionTruncate

public abstract class Action
extends Object
implements QuickSerializable

The Action class is the base class for internal actions in the OceanStore system.

Version:
$Id: Action.java,v 1.22 2002/07/25 06:03:07 eaton Exp $
Author:
Patrick R. Eaton

Constructor Summary
protected Action()
           
protected Action(InputBuffer buffer)
           
 
Method Summary
abstract  long getLength()
          Return the length of data modified (in bytes).
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
abstract  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
 

Constructor Detail

Action

protected Action()

Action

protected Action(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
Parameters:
buffer - the output buffer to add the object to

getLength

public abstract long getLength()
Return the length of data modified (in bytes).

Returns:
length of data modified (in bytes).

toString

public abstract String toString()
Return a representation of this action as a string.

Overrides:
toString in class Object
Returns:
a string representation of this action