|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.post.log.Log rice.post.log.EncryptedLog rice.post.log.CoalescedLog rice.email.log.EmailLog
public class EmailLog
This represents the head of an email log, representing a folder.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class rice.post.log.CoalescedLog |
---|
CoalescedLog.AddCoalescedLogEntryTask, CoalescedLog.PhantomLogEntry |
Nested classes/interfaces inherited from class rice.post.log.Log |
---|
Log.AddLogEntryTask |
Field Summary | |
---|---|
static int |
DEFAULT_UID
|
Fields inherited from class rice.post.log.CoalescedLog |
---|
cbuffer, cipherPending, COALESCE_NUM, logger, pending |
Fields inherited from class rice.post.log.EncryptedLog |
---|
cipherKey, key |
Fields inherited from class rice.post.log.Log |
---|
buffer, children, childrenCache, location, N_TOP_ENTRIES, name, post, topEntry, topEntryReference, topEntryReferences |
Constructor Summary | |
---|---|
protected |
EmailLog(EmailLog unreconciled,
java.security.KeyPair pair)
This constructor should only be used for constructing a reconciled log |
|
EmailLog(java.lang.Object name,
Id location,
Post post,
java.security.KeyPair pair)
Constructor for SnapShot. |
Method Summary | |
---|---|
void |
addSubscription(java.lang.String sub,
Continuation command)
Adds a subscriptions to the log |
void |
decrementExists()
Decrements the number of messages which exist in this folder |
void |
decrementExists(int num)
Decrements the number of messages which exist in this folder |
void |
decrementRecent()
Decrements the number of messages which exist in this folder |
void |
dump()
|
void |
dumpAll()
|
int |
getBufferSize()
Returns the number elements in the new entry buffer |
long |
getCreationTime()
Returns the time (in milliseconds) that this email log was created. |
int |
getEntries()
Returns the number of log entries since a snapshot |
int |
getExists()
Returns the number of messages which exist in this folder |
int |
getNextUID()
Returns the next available UID, and increments the UID counter. |
int |
getRecent()
Returns the number of messages which are recent in this folder |
void |
getSnapshot(Continuation command)
Returns the most recent snapshot reference |
ContentHashReference |
getSnapshotReference()
Returns the reference to the most recent snapshot |
ContentHashReference[] |
getSnapshotReferences()
Returns the reference to the most recent snapshot array |
void |
getSubscriptions(Continuation command)
Returns the list of subscriptions in the log |
void |
incrementEntries()
Increments the number of entries since a snapshot |
void |
incrementExists()
Increments the number of messages which exist in this folder |
void |
incrementExists(int num)
Increments the number of messages which exist in this folder |
void |
incrementRecent()
Increments the number of messages which exist in this folder |
int |
peekNextUID()
Returns the next UID, and doesn't increment the UID counter. |
void |
reconcile(EmailLog otherLog,
java.security.KeyPair keyPair,
Continuation command)
|
void |
removeSubscription(java.lang.String sub,
Continuation command)
Adds a subscriptions to the log |
void |
resetEntries()
Resets the number of entries since a snapshot |
void |
setExists(int num)
Sets the number of messages which exist in this folder |
void |
setSnapshot(SnapShot[] newsnapshots,
Continuation command)
Sets the newest snapshot |
Methods inherited from class rice.post.log.CoalescedLog |
---|
addLogEntry, getActualTopEntry, getLogEntryReferences, getTopEntry, regenerateCipherPending, resetPending, retrievePending, setKeyPair, toString |
Methods inherited from class rice.post.log.Log |
---|
addChildLog, buildContentHashReference, buildSecureReference, buildSignedReference, cache, getChildLog, getChildLogNames, getLocation, getName, getRealTopEntry, getTopEntryReference, removeChildLog, setName, setPost, sync |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_UID
Constructor Detail |
---|
public EmailLog(java.lang.Object name, Id location, Post post, java.security.KeyPair pair)
name
- The name of this loglocation
- The location where this log is storedpost
- The current local post serviceprotected EmailLog(EmailLog unreconciled, java.security.KeyPair pair)
unreconciled
- base
- pair
- Method Detail |
---|
public ContentHashReference getSnapshotReference()
public ContentHashReference[] getSnapshotReferences()
public void getSubscriptions(Continuation command)
command
- the work to perform after this call.public void addSubscription(java.lang.String sub, Continuation command)
command
- the work to perform after this call.sub
- The subscription to addpublic void removeSubscription(java.lang.String sub, Continuation command)
command
- the work to perform after this call.sub
- The subscription to addpublic int getBufferSize()
public int getEntries()
public void incrementEntries()
public void resetEntries()
public void setSnapshot(SnapShot[] newsnapshots, Continuation command)
snapshot
- The snapshotpublic void getSnapshot(Continuation command)
public void dump()
public void dumpAll()
public int getExists()
public void setExists(int num)
num
- The new number of messagespublic void incrementExists()
public void incrementExists(int num)
num
- The number to increment bypublic void decrementExists()
public void decrementExists(int num)
num
- The number to increment bypublic int getRecent()
public void incrementRecent()
public void decrementRecent()
public int peekNextUID()
public int getNextUID()
public long getCreationTime()
public void reconcile(EmailLog otherLog, java.security.KeyPair keyPair, Continuation command)
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |