|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.aggregation.Aggregate
public class Aggregate
| Field Summary | |
|---|---|
protected GCPastContent[] |
components
|
protected Id |
myId
|
protected Id[] |
pointers
|
| Constructor Summary | |
|---|---|
Aggregate(GCPastContent[] components,
Id[] pointers)
|
|
| Method Summary | |
|---|---|
PastContent |
checkInsert(Id id,
PastContent existingContent)
Checks if a insert operation should be allowed. |
GCPastContent |
getComponent(int index)
|
byte[] |
getContentHash()
|
GCPastContentHandle |
getHandle(GCPast local,
long expiration)
Produces a handle for this content object. |
PastContentHandle |
getHandle(Past local)
Produces a handle for this content object. |
Id |
getId()
Returns the Id under which this object is stored in Past. |
GCPastMetadata |
getMetadata(long expiration)
Returns the metadata which should be stored with this object. |
Id[] |
getPointers()
|
long |
getVersion()
Returns the version number associated with this PastContent object - version numbers are designed to be monotonically increasing numbers which signify different versions of the same object. |
boolean |
isMutable()
States if this content object is mutable. |
int |
numComponents()
|
void |
setId(Id myId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GCPastContent[] components
protected Id[] pointers
protected Id myId
| Constructor Detail |
|---|
public Aggregate(GCPastContent[] components,
Id[] pointers)
| Method Detail |
|---|
public void setId(Id myId)
public Id getId()
PastContent
getId in interface PastContent
public Id[] getPointers()
public int numComponents()
public GCPastContent getComponent(int index)
public long getVersion()
GCPastContent
getVersion in interface GCPastContent
public boolean isMutable()
PastContent
isMutable in interface PastContent
public PastContent checkInsert(Id id,
PastContent existingContent)
throws PastException
PastContent
checkInsert in interface PastContent
id - the key identifying the object
PastExceptionpublic byte[] getContentHash()
public PastContentHandle getHandle(Past local)
PastContent
getHandle in interface PastContent
public GCPastContentHandle getHandle(GCPast local,
long expiration)
GCPastContent
getHandle in interface GCPastContent
public GCPastMetadata getMetadata(long expiration)
GCPastContent
getMetadata in interface GCPastContent
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||