|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.p2p.aggregation.AggregationImpl
DESCRIBE THE CLASS
| Field Summary | |
protected AggregateFactory |
aggregateFactory
DESCRIBE THE FIELD |
protected AggregateList |
aggregateList
DESCRIBE THE FIELD |
protected Past |
aggregateStore
DESCRIBE THE FIELD |
protected PastContentDeserializer |
contentDeserializer
DESCRIBE THE FIELD |
protected PastContentHandleDeserializer |
contentHandleDeserializer
DESCRIBE THE FIELD |
protected Endpoint |
endpoint
DESCRIBE THE FIELD |
protected IdFactory |
factory
DESCRIBE THE FIELD |
protected Continuation |
flushWait
DESCRIBE THE FIELD |
protected java.lang.String |
instance
DESCRIBE THE FIELD |
protected Logger |
logger
DESCRIBE THE FIELD |
protected java.util.Vector |
monitorIDs
DESCRIBE THE FIELD |
protected Node |
node
DESCRIBE THE FIELD |
protected Past |
objectStore
DESCRIBE THE FIELD |
protected AggregationPolicy |
policy
DESCRIBE THE FIELD |
protected boolean |
rebuildInProgress
DESCRIBE THE FIELD |
protected AggregationStatistics |
stats
DESCRIBE THE FIELD |
protected java.util.Hashtable |
timers
DESCRIBE THE FIELD |
protected StorageManager |
waitingList
DESCRIBE THE FIELD |
| Fields inherited from interface rice.p2p.past.gc.GCPast |
INFINITY_EXPIRATION |
| Constructor Summary | |
AggregationImpl(Node node,
Past aggregateStore,
Past objectStore,
StorageManager waitingList,
java.lang.String configFileName,
IdFactory factory,
java.lang.String instance)
Constructor for AggregationImpl. |
|
AggregationImpl(Node node,
Past aggregateStore,
Past objectStore,
StorageManager waitingList,
java.lang.String configFileName,
IdFactory factory,
java.lang.String instance,
AggregationPolicy policy,
AggregateFactory aggregateFactory)
Constructor for AggregationImpl. |
|
| Method Summary | |
void |
deliver(Id id,
Message message)
DESCRIBE THE METHOD |
void |
fetch(PastContentHandle handle,
Continuation command)
DESCRIBE THE METHOD |
void |
flush(Continuation command)
DESCRIBE THE METHOD |
void |
flush(Id id,
Continuation command)
DESCRIBE THE METHOD |
boolean |
forward(RouteMessage message)
DESCRIBE THE METHOD |
Past |
getAggregateStore()
Gets the AggregateStore attribute of the AggregationImpl object |
Environment |
getEnvironment()
Gets the Environment attribute of the AggregationImpl object |
java.io.Serializable |
getHandle()
Gets the Handle attribute of the AggregationImpl object |
java.lang.String |
getInstance()
Gets the Instance attribute of the AggregationImpl object |
NodeHandle |
getLocalNodeHandle()
Gets the LocalNodeHandle attribute of the AggregationImpl object |
int |
getNumObjectsWaiting()
Gets the NumObjectsWaiting attribute of the AggregationImpl object |
Past |
getObjectStore()
Gets the ObjectStore attribute of the AggregationImpl object |
int |
getReplicationFactor()
Gets the ReplicationFactor attribute of the AggregationImpl object |
AggregationStatistics |
getStatistics()
Gets the Statistics attribute of the AggregationImpl object |
java.lang.String |
handleDebugCommand(java.lang.String command)
DESCRIBE THE METHOD |
void |
insert(PastContent obj,
Continuation command)
DESCRIBE THE METHOD |
void |
insert(PastContent obj,
long lifetime,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
boolean cache,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
Continuation command)
DESCRIBE THE METHOD |
void |
lookup(Id id,
long version,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandle(Id id,
NodeHandle handle,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandles(Id id,
int max,
Continuation command)
DESCRIBE THE METHOD |
void |
lookupHandles(Id id,
long version,
int max,
Continuation command)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long[] expirations,
Continuation command)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
DESCRIBE THE METHOD |
void |
refresh(Id[] ids,
long expiration,
Continuation command)
DESCRIBE THE METHOD |
void |
reset(Continuation command)
DESCRIBE THE METHOD |
void |
rollback(Id id,
Continuation command)
DESCRIBE THE METHOD |
void |
setConsolidationInterval(long consolidationIntervalSec)
Sets the ConsolidationInterval attribute of the AggregationImpl object |
void |
setConsolidationMinObjectsPerAggregate(int minObjectsInAggregateArg)
Sets the ConsolidationMinObjectsPerAggregate attribute of the AggregationImpl object |
void |
setConsolidationMinUtilization(double minUtilization)
Sets the ConsolidationMinUtilization attribute of the AggregationImpl object |
void |
setConsolidationThreshold(long consolidationThresholdSec)
Sets the ConsolidationThreshold attribute of the AggregationImpl object |
void |
setContentDeserializer(PastContentDeserializer deserializer)
Sets the ContentDeserializer attribute of the AggregationImpl object |
void |
setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
Sets the ContentHandleDeserializer attribute of the AggregationImpl object |
void |
setFlushInterval(int flushIntervalSec)
Sets the FlushInterval attribute of the AggregationImpl object |
void |
setHandle(java.io.Serializable handle,
Continuation command)
Sets the Handle attribute of the AggregationImpl object |
void |
setMaxAggregateSize(int maxAggregateSize)
Sets the MaxAggregateSize attribute of the AggregationImpl object |
void |
setMaxObjectsInAggregate(int maxObjectsInAggregate)
Sets the MaxObjectsInAggregate attribute of the AggregationImpl object |
void |
setRenewThreshold(int expirationRenewThresholdHrs)
Sets the RenewThreshold attribute of the AggregationImpl object |
void |
update(NodeHandle handle,
boolean joined)
DESCRIBE THE METHOD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final Past aggregateStore
protected final StorageManager waitingList
protected final AggregationPolicy policy
protected final AggregateList aggregateList
protected final Endpoint endpoint
protected final Past objectStore
protected final java.lang.String instance
protected final IdFactory factory
protected final Node node
protected java.util.Hashtable timers
protected Continuation flushWait
protected boolean rebuildInProgress
protected java.util.Vector monitorIDs
protected AggregationStatistics stats
protected Logger logger
protected PastContentDeserializer contentDeserializer
protected PastContentHandleDeserializer contentHandleDeserializer
protected AggregateFactory aggregateFactory
| Constructor Detail |
public AggregationImpl(Node node,
Past aggregateStore,
Past objectStore,
StorageManager waitingList,
java.lang.String configFileName,
IdFactory factory,
java.lang.String instance)
throws java.io.IOException
node - DESCRIBE THE PARAMETERaggregateStore - DESCRIBE THE PARAMETERobjectStore - DESCRIBE THE PARAMETERwaitingList - DESCRIBE THE PARAMETERconfigFileName - DESCRIBE THE PARAMETERfactory - DESCRIBE THE PARAMETERinstance - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION
public AggregationImpl(Node node,
Past aggregateStore,
Past objectStore,
StorageManager waitingList,
java.lang.String configFileName,
IdFactory factory,
java.lang.String instance,
AggregationPolicy policy,
AggregateFactory aggregateFactory)
throws java.io.IOException
node - DESCRIBE THE PARAMETERaggregateStore - DESCRIBE THE PARAMETERobjectStore - DESCRIBE THE PARAMETERwaitingList - DESCRIBE THE PARAMETERconfigFileName - DESCRIBE THE PARAMETERfactory - DESCRIBE THE PARAMETERinstance - DESCRIBE THE PARAMETERpolicy - DESCRIBE THE PARAMETERaggregateFactory - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION| Method Detail |
public java.io.Serializable getHandle()
getHandle in interface Aggregationpublic NodeHandle getLocalNodeHandle()
getLocalNodeHandle in interface Pastpublic int getReplicationFactor()
getReplicationFactor in interface Pastpublic Past getAggregateStore()
public Past getObjectStore()
public int getNumObjectsWaiting()
public AggregationStatistics getStatistics()
public java.lang.String getInstance()
getInstance in interface Pastpublic Environment getEnvironment()
getEnvironment in interface Past
public void setHandle(java.io.Serializable handle,
Continuation command)
setHandle in interface Aggregationhandle - The new Handle valuecommand - The new Handle valuepublic void setFlushInterval(int flushIntervalSec)
flushIntervalSec - The new FlushInterval valuepublic void setMaxAggregateSize(int maxAggregateSize)
maxAggregateSize - The new MaxAggregateSize valuepublic void setMaxObjectsInAggregate(int maxObjectsInAggregate)
maxObjectsInAggregate - The new MaxObjectsInAggregate valuepublic void setRenewThreshold(int expirationRenewThresholdHrs)
expirationRenewThresholdHrs - The new RenewThreshold valuepublic void setConsolidationInterval(long consolidationIntervalSec)
consolidationIntervalSec - The new ConsolidationInterval valuepublic void setConsolidationThreshold(long consolidationThresholdSec)
consolidationThresholdSec - The new ConsolidationThreshold valuepublic void setConsolidationMinObjectsPerAggregate(int minObjectsInAggregateArg)
minObjectsInAggregateArg - The new ConsolidationMinObjectsPerAggregate
valuepublic void setConsolidationMinUtilization(double minUtilization)
minUtilization - The new ConsolidationMinUtilization valuepublic void setContentDeserializer(PastContentDeserializer deserializer)
setContentDeserializer in interface Pastdeserializer - The new ContentDeserializer valuepublic void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
setContentHandleDeserializer in interface Pastdeserializer - The new ContentHandleDeserializer valuepublic java.lang.String handleDebugCommand(java.lang.String command)
handleDebugCommand in interface DebugCommandHandlercommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long expiration,
Continuation command)
refresh in interface GCPastids - DESCRIBE THE PARAMETERexpiration - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long[] expirations,
Continuation command)
refresh in interface GCPastids - DESCRIBE THE PARAMETERexpirations - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
refresh in interface VersioningPastids - DESCRIBE THE PARAMETERversions - DESCRIBE THE PARAMETERexpirations - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void insert(PastContent obj,
Continuation command)
insert in interface GCPastobj - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void insert(PastContent obj,
long lifetime,
Continuation command)
insert in interface GCPastobj - DESCRIBE THE PARAMETERlifetime - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
boolean cache,
Continuation command)
lookup in interface Pastid - DESCRIBE THE PARAMETERcache - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
long version,
Continuation command)
lookup in interface VersioningPastid - DESCRIBE THE PARAMETERversion - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookup(Id id,
Continuation command)
lookup in interface Pastid - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookupHandles(Id id,
long version,
int max,
Continuation command)
lookupHandles in interface VersioningPastid - DESCRIBE THE PARAMETERversion - DESCRIBE THE PARAMETERmax - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookupHandle(Id id,
NodeHandle handle,
Continuation command)
lookupHandle in interface Pastid - DESCRIBE THE PARAMETERhandle - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void lookupHandles(Id id,
int max,
Continuation command)
lookupHandles in interface Pastid - DESCRIBE THE PARAMETERmax - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void fetch(PastContentHandle handle,
Continuation command)
fetch in interface Pasthandle - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETER
public void flush(Id id,
Continuation command)
flush in interface Aggregationid - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETERpublic void flush(Continuation command)
flush in interface Aggregationcommand - DESCRIBE THE PARAMETER
public void rollback(Id id,
Continuation command)
rollback in interface Aggregationid - DESCRIBE THE PARAMETERcommand - DESCRIBE THE PARAMETERpublic void reset(Continuation command)
reset in interface Aggregationcommand - DESCRIBE THE PARAMETERpublic boolean forward(RouteMessage message)
forward in interface Applicationmessage - DESCRIBE THE PARAMETER
public void update(NodeHandle handle,
boolean joined)
update in interface Applicationhandle - DESCRIBE THE PARAMETERjoined - DESCRIBE THE PARAMETER
public void deliver(Id id,
Message message)
deliver in interface Applicationid - DESCRIBE THE PARAMETERmessage - DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||