|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.update.GuidVersionMap
The GuidVersionMap
records a mapping from Aguid to
Vguid. When the inner ring initiates the execution of an update,
it provides the update stage with a mapping which contains an
entry for every potential target of the update. The update stage
uses this map to ensure that it is applying an update against the
correct versions of the target data objects.
Constructor Summary | |
---|---|
GuidVersionMap()
Construct a new GuidVersionMap . |
Method Summary | |
---|---|
SecureHash |
getVguid(SecureHash aguid)
Returns the Vguid of the current version of the data object identified by an Aguid. |
SecureHash |
getVhash(SecureHash aguid)
Returns the Vhash of the current version of the data object identified by an Aguid. |
void |
insertVguidMapping(SecureHash aguid,
SecureHash vguid)
Records a mapping from the Aguid of a data object to the Vguid of a version of that data object. |
void |
insertVhashMapping(SecureHash aguid,
SecureHash vhash)
Records a mapping from the Aguid of a data object to the Vhash of a version of that data object. |
String |
toString()
Returns a string which displays all of the mapping contained in this map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GuidVersionMap()
GuidVersionMap
. The new object
will contain no mappings.
Method Detail |
public SecureHash getVguid(SecureHash aguid)
aguid
- the Aguid of a data object
null
if this map does not contain an
entry for aguid
public SecureHash getVhash(SecureHash aguid)
aguid
- the Aguid of a data object
null
if this map does not contain an
entry for aguid
public void insertVguidMapping(SecureHash aguid, SecureHash vguid)
aguid
- the Aguid of a data objectvguid
- the Vguid of the corresponding version of that data aobjectpublic void insertVhashMapping(SecureHash aguid, SecureHash vhash)
aguid
- the Aguid of a data objectvhash
- the Vhash of the corresponding version of that data aobjectpublic String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |