fabric.worker.remote
Class UpdateMap

java.lang.Object
  extended by fabric.worker.remote.UpdateMap
All Implemented Interfaces:
FastSerializable

public class UpdateMap
extends java.lang.Object
implements FastSerializable

Maps proxies to the host that holds the most up-to-date copy of that object. Also maps proxies of newly created objects to their corresponding labels.


Field Summary
 int version
           
 
Constructor Summary
UpdateMap(java.io.DataInput in)
          Deserialization constructor.
UpdateMap(long tid)
           
UpdateMap(UpdateMap map)
          Copy constructor.
 
Method Summary
 boolean containsCreate(Object._Proxy proxy)
          Determines whether this map has a "create" entry for the given object.
 Label getCreate(Object._Proxy proxy)
           
 RemoteWorker getUpdate(Object._Proxy proxy)
           
 RemoteWorker getUpdate(Object._Proxy proxy, Label label)
          This version of the lookup avoids having to fetch the proxy to determine its label.
 void put(Object._Proxy proxy, Label keyObject)
           
 void putAll(UpdateMap map)
          Puts all the entries from the given map into this map.
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public int version
Constructor Detail

UpdateMap

public UpdateMap(long tid)
Parameters:
tid - the transaction ID for the topmost transaction that this map is a part of.

UpdateMap

public UpdateMap(UpdateMap map)
Copy constructor.


UpdateMap

public UpdateMap(java.io.DataInput in)
          throws java.io.IOException
Deserialization constructor.

Throws:
java.io.IOException
Method Detail

containsCreate

public boolean containsCreate(Object._Proxy proxy)
Determines whether this map has a "create" entry for the given object.


getCreate

public Label getCreate(Object._Proxy proxy)

getUpdate

public RemoteWorker getUpdate(Object._Proxy proxy)

getUpdate

public RemoteWorker getUpdate(Object._Proxy proxy,
                              Label label)
This version of the lookup avoids having to fetch the proxy to determine its label.

Parameters:
label - the label corresponding to the given proxy.

put

public void put(Object._Proxy proxy,
                Label keyObject)

putAll

public void putAll(UpdateMap map)
Puts all the entries from the given map into this map.


write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Specified by:
write in interface FastSerializable
Throws:
java.io.IOException