|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.update.Action | +--ostore.update.ActionTruncate
This action truncates a data object. The resulting object is zero bytes in length and all data previously in the object is lost.
Field Summary | |
---|---|
static boolean |
DEBUG
|
Constructor Summary | |
---|---|
ActionTruncate(InputBuffer buffer)
|
|
ActionTruncate(SecureHash target)
Construct an ActionTruncate action. |
Method Summary | |
---|---|
long |
getLength()
getLength returns the length of the ActionTruncate . |
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 ActionTruncate(SecureHash target)
ActionTruncate
action.
target
- the Aguid of the target data objectpublic ActionTruncate(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
serialize
in class Action
buffer
- the output buffer to add the object topublic void perform(GuidVersionMap guid_map, VersionHandleCache version_cache, UpdateContinuation continuation, DataCache cache) throws ostore.update.UpdateException
perform
in class Action
ostore.update.UpdateException
public long getLength()
ActionTruncate
.
getLength
in class Action
ActionTruncate
public Set getTargets()
getTargets
in class Action
public String toString()
Action
toString
in class Action
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |