|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.post.log.LogEntry
public abstract class LogEntry
Abstract class for all entries in the log. Each application using post should implement a class hierarchy of log entries relevant to the semantics of that system.
Field Summary | |
---|---|
protected Logger |
logger
|
protected Post |
post
|
protected LogEntryReference |
previousEntryReference
|
protected LogEntryReference[] |
previousEntryReferences
|
protected PostEntityAddress |
user
|
Constructor Summary | |
---|---|
LogEntry()
Constructs a LogEntry |
Method Summary | |
---|---|
ContentHashReference |
buildContentHashReference(Id[] location,
byte[][] key)
Builds a LogEntryReference object to this log, given a location and the encryption key |
SecureReference |
buildSecureReference(Id location,
byte[] key)
This method is not supported (you CAN NOT store a log as a secure block). |
SignedReference |
buildSignedReference(Id location)
This method is not supported (you CAN NOT store a log entry as a public-key signed block). |
protected boolean |
contains(LogEntry entry)
Returns whether or not this coaleseced log entry contains the provided entry |
LogEntry |
getCachedPreviousEntry()
Returns the cached previous entry, if it exists and is in memory. |
void |
getPreviousEntry(Continuation command)
Returns the reference to the previous entry in the log |
LogEntryReference |
getPreviousEntryReference()
Returns the reference to the previous entry in the log |
protected void |
getRealPreviousEntry(Continuation command)
Returns the reference to the previous entry in the log |
boolean |
hasPreviousEntry()
Returns whether or not this log entry has a previous log entry |
void |
setPreviousEntryReferences(LogEntryReference[] ref)
Sets the reference to the previous entry in the log |
void |
setUser(PostEntityAddress user)
Sets the user of this log entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PostEntityAddress user
protected LogEntryReference previousEntryReference
protected LogEntryReference[] previousEntryReferences
protected transient Post post
protected transient Logger logger
Constructor Detail |
---|
public LogEntry()
Method Detail |
---|
protected boolean contains(LogEntry entry)
entry
- The entry to search for
public void setUser(PostEntityAddress user)
user
- The user who created this entrypublic void setPreviousEntryReferences(LogEntryReference[] ref)
ref
- A reference to the previous log entrypublic LogEntryReference getPreviousEntryReference()
public boolean hasPreviousEntry()
public void getPreviousEntry(Continuation command)
public LogEntry getCachedPreviousEntry()
protected final void getRealPreviousEntry(Continuation command)
public SignedReference buildSignedReference(Id location)
buildSignedReference
in interface PostData
location
- The location of this object.
IllegalArgument
- Alwayspublic ContentHashReference buildContentHashReference(Id[] location, byte[][] key)
buildContentHashReference
in interface PostData
location
- The location of the stored datakey
- The key used to encrypt this object
public SecureReference buildSecureReference(Id location, byte[] key)
buildSecureReference
in interface PostData
location
- The location of the datakey
- The for the data
java.lang.IllegalArgumentException
- Always
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |