|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.aggregation.Aggregate
DESCRIBE THE CLASS
Field Summary | |
protected GCPastContent[] |
components
DESCRIBE THE FIELD |
protected Id |
myId
DESCRIBE THE FIELD |
protected Id[] |
pointers
DESCRIBE THE FIELD |
Constructor Summary | |
Aggregate(GCPastContent[] components,
Id[] pointers)
Constructor for Aggregate. |
Method Summary | |
PastContent |
checkInsert(Id id,
PastContent existingContent)
DESCRIBE THE METHOD |
GCPastContent |
getComponent(int index)
Gets the Component attribute of the Aggregate object |
byte[] |
getContentHash()
Gets the ContentHash attribute of the Aggregate object |
GCPastContentHandle |
getHandle(GCPast local,
long expiration)
Gets the Handle attribute of the Aggregate object |
PastContentHandle |
getHandle(Past local)
Gets the Handle attribute of the Aggregate object |
Id |
getId()
Gets the Id attribute of the Aggregate object |
GCPastMetadata |
getMetadata(long expiration)
Gets the Metadata attribute of the Aggregate object |
Id[] |
getPointers()
Gets the Pointers attribute of the Aggregate object |
long |
getVersion()
Gets the Version attribute of the Aggregate object |
boolean |
isMutable()
Gets the Mutable attribute of the Aggregate object |
int |
numComponents()
DESCRIBE THE METHOD |
void |
setId(Id myId)
Sets the Id attribute of the Aggregate object |
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)
components
- DESCRIBE THE PARAMETERpointers
- DESCRIBE THE PARAMETERMethod Detail |
public Id getId()
getId
in interface PastContent
public Id[] getPointers()
public GCPastContent getComponent(int index)
index
- DESCRIBE THE PARAMETER
public long getVersion()
getVersion
in interface GCPastContent
public boolean isMutable()
isMutable
in interface PastContent
public byte[] getContentHash()
public PastContentHandle getHandle(Past local)
getHandle
in interface PastContent
local
- DESCRIBE THE PARAMETER
public GCPastContentHandle getHandle(GCPast local, long expiration)
getHandle
in interface GCPastContent
local
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETER
public GCPastMetadata getMetadata(long expiration)
getMetadata
in interface GCPastContent
expiration
- DESCRIBE THE PARAMETER
public void setId(Id myId)
myId
- The new Id valuepublic int numComponents()
public PastContent checkInsert(Id id, PastContent existingContent) throws PastException
checkInsert
in interface PastContent
id
- DESCRIBE THE PARAMETERexistingContent
- DESCRIBE THE PARAMETER
PastException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |