rice.p2p.past.testing
Class PastRegrTest.NonOverwritingTestPastContent
java.lang.Object
rice.p2p.past.testing.PastRegrTest.TestPastContent
rice.p2p.past.testing.PastRegrTest.VersionedTestPastContent
rice.p2p.past.testing.PastRegrTest.NonOverwritingTestPastContent
- All Implemented Interfaces:
- Serializable, PastContent
- Enclosing class:
- PastRegrTest
protected static class PastRegrTest.NonOverwritingTestPastContent
- extends PastRegrTest.VersionedTestPastContent
- See Also:
- Serialized Form
PastRegrTest.NonOverwritingTestPastContent
public PastRegrTest.NonOverwritingTestPastContent(Id id,
int version)
checkInsert
public PastContent checkInsert(Id id,
PastContent existingContent)
throws PastException
- Description copied from interface:
PastContent
- Checks if a insert operation should be allowed. Invoked when a
Past node receives an insert request and it is a replica root for
the id; invoked on the object to be inserted. This method
determines the effect of an insert operation on an object that
already exists: it computes the new value of the stored object,
as a function of the new and the existing object.
- Specified by:
checkInsert in interface PastContent- Overrides:
checkInsert in class PastRegrTest.TestPastContent
- Parameters:
id - the key identifying the object
- Returns:
- null, if the operation is not allowed; else, the new
object to be stored on the local node.
- Throws:
PastException
Copyright © 2010. All Rights Reserved.