|
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.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 EXCEPTIONpublic 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 EXCEPTIONMethod Detail |
public java.io.Serializable getHandle()
getHandle
in interface Aggregation
public NodeHandle getLocalNodeHandle()
getLocalNodeHandle
in interface Past
public int getReplicationFactor()
getReplicationFactor
in interface Past
public Past getAggregateStore()
public Past getObjectStore()
public int getNumObjectsWaiting()
public AggregationStatistics getStatistics()
public java.lang.String getInstance()
getInstance
in interface Past
public Environment getEnvironment()
getEnvironment
in interface Past
public void setHandle(java.io.Serializable handle, Continuation command)
setHandle
in interface Aggregation
handle
- 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 Past
deserializer
- The new ContentDeserializer valuepublic void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
setContentHandleDeserializer
in interface Past
deserializer
- The new ContentHandleDeserializer valuepublic java.lang.String handleDebugCommand(java.lang.String command)
handleDebugCommand
in interface DebugCommandHandler
command
- DESCRIBE THE PARAMETER
public void refresh(Id[] ids, long expiration, Continuation command)
refresh
in interface GCPast
ids
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void refresh(Id[] ids, long[] expirations, Continuation command)
refresh
in interface GCPast
ids
- DESCRIBE THE PARAMETERexpirations
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void refresh(Id[] ids, long[] versions, long[] expirations, Continuation command)
refresh
in interface VersioningPast
ids
- DESCRIBE THE PARAMETERversions
- DESCRIBE THE PARAMETERexpirations
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void insert(PastContent obj, Continuation command)
insert
in interface GCPast
obj
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void insert(PastContent obj, long lifetime, Continuation command)
insert
in interface GCPast
obj
- DESCRIBE THE PARAMETERlifetime
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, boolean cache, Continuation command)
lookup
in interface Past
id
- DESCRIBE THE PARAMETERcache
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, long version, Continuation command)
lookup
in interface VersioningPast
id
- DESCRIBE THE PARAMETERversion
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, Continuation command)
lookup
in interface Past
id
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandles(Id id, long version, int max, Continuation command)
lookupHandles
in interface VersioningPast
id
- DESCRIBE THE PARAMETERversion
- DESCRIBE THE PARAMETERmax
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandle(Id id, NodeHandle handle, Continuation command)
lookupHandle
in interface Past
id
- DESCRIBE THE PARAMETERhandle
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandles(Id id, int max, Continuation command)
lookupHandles
in interface Past
id
- DESCRIBE THE PARAMETERmax
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void fetch(PastContentHandle handle, Continuation command)
fetch
in interface Past
handle
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void flush(Id id, Continuation command)
flush
in interface Aggregation
id
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void flush(Continuation command)
flush
in interface Aggregation
command
- DESCRIBE THE PARAMETERpublic void rollback(Id id, Continuation command)
rollback
in interface Aggregation
id
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void reset(Continuation command)
reset
in interface Aggregation
command
- DESCRIBE THE PARAMETERpublic boolean forward(RouteMessage message)
forward
in interface Application
message
- DESCRIBE THE PARAMETER
public void update(NodeHandle handle, boolean joined)
update
in interface Application
handle
- DESCRIBE THE PARAMETERjoined
- DESCRIBE THE PARAMETERpublic void deliver(Id id, Message message)
deliver
in interface Application
id
- 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 |