tapestry.impl
Class MulticastState

java.lang.Object
  |
  +--tapestry.impl.MulticastState

public class MulticastState
extends Object


Field Summary
 boolean DEBUG
           
 HashMap indexToLocks
           
 
Constructor Summary
MulticastState(SecureHash self_guid)
           
 
Method Summary
 boolean ackMCast(SecureHash newnodeguid, SecureHash fromGuid, NodeId fromAddr)
          Method to remove a mcast reference as part of handling acks
 void addAlpha(SecureHash newnodeguid, int alpha)
           
 void addLocks(SecureHash newnodeguid, TreeSet locks)
           
 void addMCAddr(SecureHash newnodeguid, NodeId addr)
           
 void addMCast(SecureHash newnodeguid, NodeId neighbor)
           
 void addMCParent(SecureHash newnodeguid, NodeId parent)
           
 NodeState addNodeState(SecureHash newguid, int alpha, NodeId parent, NodeId addr, TreeSet locks)
           
 int calcAlpha(SecureHash newnodeguid, SecureHash currnodeguid)
           
 int calcAndAddAlpha(SecureHash newnodeguid, SecureHash currnodeguid)
           
 void cleanSlate(NodeId newAddr, SecureHash newGuid)
          Function to clean out the state for a particular node insertion.
 int getAlpha(SecureHash newnodeguid)
           
 SecureHash getGuid()
           
 NodeId getMCAddr(SecureHash newnodeguid)
           
 HashSet getMCasts(NodeId neighbor)
           
 NodeId getMCParent(SecureHash newnodeguid)
           
 HashMap getNodeMap()
           
 NodeState getNodeState(SecureHash newnodeguid)
           
 boolean setNotify(SecureHash src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexToLocks

public HashMap indexToLocks

DEBUG

public final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

MulticastState

public MulticastState(SecureHash self_guid)
Method Detail

getNodeMap

public HashMap getNodeMap()

getGuid

public SecureHash getGuid()

getMCasts

public HashSet getMCasts(NodeId neighbor)

getAlpha

public int getAlpha(SecureHash newnodeguid)

getMCParent

public NodeId getMCParent(SecureHash newnodeguid)

getMCAddr

public NodeId getMCAddr(SecureHash newnodeguid)

getNodeState

public NodeState getNodeState(SecureHash newnodeguid)

addNodeState

public NodeState addNodeState(SecureHash newguid,
                              int alpha,
                              NodeId parent,
                              NodeId addr,
                              TreeSet locks)

addLocks

public void addLocks(SecureHash newnodeguid,
                     TreeSet locks)

addMCAddr

public void addMCAddr(SecureHash newnodeguid,
                      NodeId addr)

addMCParent

public void addMCParent(SecureHash newnodeguid,
                        NodeId parent)

addAlpha

public void addAlpha(SecureHash newnodeguid,
                     int alpha)

calcAndAddAlpha

public int calcAndAddAlpha(SecureHash newnodeguid,
                           SecureHash currnodeguid)

calcAlpha

public int calcAlpha(SecureHash newnodeguid,
                     SecureHash currnodeguid)

addMCast

public void addMCast(SecureHash newnodeguid,
                     NodeId neighbor)

ackMCast

public boolean ackMCast(SecureHash newnodeguid,
                        SecureHash fromGuid,
                        NodeId fromAddr)
                 throws MissingObjectException
Method to remove a mcast reference as part of handling acks

Returns:
whether the acks for this particular guid are all done
MissingObjectException

setNotify

public boolean setNotify(SecureHash src)

cleanSlate

public void cleanSlate(NodeId newAddr,
                       SecureHash newGuid)
Function to clean out the state for a particular node insertion. This should be called when a node is sending up a dynamimDMAck for a particular node.