|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.worker.remote.UpdateMap
public class UpdateMap
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 |
---|
public int version
Constructor Detail |
---|
public UpdateMap(long tid)
tid
- the transaction ID for the topmost transaction that this map is a
part of.public UpdateMap(UpdateMap map)
public UpdateMap(java.io.DataInput in) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean containsCreate(Object._Proxy proxy)
public Label getCreate(Object._Proxy proxy)
public RemoteWorker getUpdate(Object._Proxy proxy)
public RemoteWorker getUpdate(Object._Proxy proxy, Label label)
label
- the label corresponding to the given proxy.public void put(Object._Proxy proxy, Label keyObject)
public void putAll(UpdateMap map)
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface FastSerializable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |