From: Manik S. <msu...@jb...> - 2006-07-10 16:28:51
|
User: msurtani Date: 06/07/10 12:28:50 Modified: src/org/jboss/cache/interceptors DataGravitatorInterceptor.java Log: Revision Changes Path 1.17 +8 -11 JBossCache/src/org/jboss/cache/interceptors/DataGravitatorInterceptor.java (In the diff below, changes in quantity of whitespace are not shown.) Index: DataGravitatorInterceptor.java =================================================================== RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/DataGravitatorInterceptor.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- DataGravitatorInterceptor.java 6 Jun 2006 10:17:14 -0000 1.16 +++ DataGravitatorInterceptor.java 10 Jul 2006 16:28:50 -0000 1.17 @@ -35,16 +35,14 @@ import java.util.Vector; /** - * The Data Gravitator is a type of cache loader that queries the cluster for data. Behaviourally very similar to - * {@see ClusteredCacheLoader} which it extends, it adds on further semantics specific to data gravitation. - * <p /> - * Optional config properties such as: - * <ul> - * <li>removeOnFind - defaults to true, forces all remote caches that own the data or hold backups for the data to remove that data, - * thereby making the requesting cache the new data owner. If set to false an evict is broadcast instead of a remove, so any state - * persisted in cache loaders will remain. This is useful if you have a shared cache loader configured.</li> - * <li>searchBackupTrees - defaults to true, causes remote caches to search through their backup subtrees in addition to their main data trees.</li> - * </ul> + * The Data Gravitator interceptor intercepts cache misses and attempts t gravitate data from other parts of the cluster. + * + * Only used if Buddy Replication is enabled. Also, the interceptor only kicks in if an {@link Option} is passed in to + * force Data Gravitation for a specific invocation or if <b>autoDataGravitation</b> is set to <b>true</b> when configuring + * Buddy Replication. + * + * See the JBoss Cache User Guide for more details on configuration options. There is a section dedicated to Buddy Replication + * in the Replication chapter. * * @author <a href="mailto:ma...@jb...">Manik Surtani (ma...@jb...)</a> */ @@ -107,7 +105,6 @@ { // create node locally so I don't gravitate again // when I do the put() call to the cluster! - // FIXME -- need to be able to suppress gravitation!!! createNode(true, data.backupData); // Make sure I replicate to my buddies. log.trace("Passing the put call locally to make sure state is persisted and ownership is correctly established."); |