ePOST API

rice.post.log
Class CoalescedLog.PhantomLogEntry

java.lang.Object
  extended by rice.post.log.LogEntry
      extended by rice.post.log.CoalescedLog.PhantomLogEntry
All Implemented Interfaces:
java.io.Serializable, PostData
Enclosing class:
CoalescedLog

protected class CoalescedLog.PhantomLogEntry
extends LogEntry

Internal class for bookkeeping log entries

See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.post.log.LogEntry
logger, post, previousEntryReference, previousEntryReferences, user
 
Constructor Summary
CoalescedLog.PhantomLogEntry()
          Constructor which takes the wrapped entry
 
Method Summary
 LogEntry getCachedPreviousEntry()
          Returns the cached previous entry, if it exists and is in memory.
 void getPreviousEntry(Continuation command)
          Method which redirects the getPreviousEntry back to the Coalesed entry
 LogEntryReference getPreviousEntryReference()
          Returns the reference to the previous entry in the log
 boolean hasPreviousEntry()
          Returns whether or not this log entry has a previous log entry
 
Methods inherited from class rice.post.log.LogEntry
buildContentHashReference, buildSecureReference, buildSignedReference, contains, getRealPreviousEntry, setPreviousEntryReferences, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoalescedLog.PhantomLogEntry

public CoalescedLog.PhantomLogEntry()
Constructor which takes the wrapped entry

Method Detail

getPreviousEntryReference

public LogEntryReference getPreviousEntryReference()
Returns the reference to the previous entry in the log

Overrides:
getPreviousEntryReference in class LogEntry
Returns:
A reference to the previous log entry

hasPreviousEntry

public boolean hasPreviousEntry()
Returns whether or not this log entry has a previous log entry

Overrides:
hasPreviousEntry in class LogEntry
Returns:
Whether or not this log entry has a previous

getCachedPreviousEntry

public LogEntry getCachedPreviousEntry()
Returns the cached previous entry, if it exists and is in memory. Otherwise, it returns null.

Overrides:
getCachedPreviousEntry in class LogEntry
Returns:
The cached previous entry

getPreviousEntry

public void getPreviousEntry(Continuation command)
Method which redirects the getPreviousEntry back to the Coalesed entry

Overrides:
getPreviousEntry in class LogEntry
Parameters:
command - The command to return the result to.

ePOST API

Copyright © 2001-2005 - Rice Pastry.