ePOST API

rice.post
Class ForwardLog

java.lang.Object
  extended by rice.post.log.Log
      extended by rice.post.ForwardLog
All Implemented Interfaces:
java.io.Serializable, PostData

public class ForwardLog
extends Log

This class represents the log of forwarding addresses for a given user. Other nodes which are sending notifications to this node should also send notifications to all of the addresses listed in this log.

Version:
$Id: ForwardLog.java 2250 2005-03-02 17:41:03Z amislove $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class rice.post.log.Log
Log.AddLogEntryTask
 
Field Summary
protected  java.lang.String[] addresses
          The list of addresses to forward to
static java.lang.String FORWARD_NAME
          The universal name for this log
static long serialVersionUID
          Serialver for backwards compatibility
 
Fields inherited from class rice.post.log.Log
buffer, children, childrenCache, location, logger, N_TOP_ENTRIES, name, post, topEntry, topEntryReference, topEntryReferences
 
Constructor Summary
ForwardLog(PostLog log, java.lang.String[] addresses, Id location, Post post, Continuation command)
          Constructor for ForwardLog.
 
Method Summary
 boolean cache()
          Returns whether or not this log should be cached
 java.lang.String[] getAddresses()
          Returns the list of forward addresses
 void setAddresses(java.lang.String[] addresses, Continuation command)
          Updates the list of addresses
 java.lang.String toString()
           
 
Methods inherited from class rice.post.log.Log
addChildLog, addLogEntry, buildContentHashReference, buildSecureReference, buildSignedReference, getChildLog, getChildLogNames, getLocation, getLogEntryReferences, getName, getRealTopEntry, getTopEntry, getTopEntryReference, removeChildLog, setName, setPost, sync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serialver for backwards compatibility

See Also:
Constant Field Values

FORWARD_NAME

public static final java.lang.String FORWARD_NAME
The universal name for this log

See Also:
Constant Field Values

addresses

protected java.lang.String[] addresses
The list of addresses to forward to

Constructor Detail

ForwardLog

public ForwardLog(PostLog log,
                  java.lang.String[] addresses,
                  Id location,
                  Post post,
                  Continuation command)
Constructor for ForwardLog. Package protected: only Post can create a ForwardLog.

Parameters:
user - The user whom this PostLog is for
key - The user's public key.
cert - This user's certification
post - The local Post service
command - The command to call once done
Method Detail

getAddresses

public java.lang.String[] getAddresses()
Returns the list of forward addresses

Returns:
The forward addresses

setAddresses

public void setAddresses(java.lang.String[] addresses,
                         Continuation command)
Updates the list of addresses

Parameters:
addresses - The new list of addresses

cache

public boolean cache()
Returns whether or not this log should be cached

Overrides:
cache in class Log
Returns:
Whether or not this log should be cached

toString

public java.lang.String toString()
Overrides:
toString in class Log

ePOST API

Copyright © 2001-2005 - Rice Pastry.