You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pp...@apache.org on 2010/02/10 03:32:41 UTC
svn commit: r908325 -
/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
Author: ppoddar
Date: Wed Feb 10 02:32:41 2010
New Revision: 908325
URL: http://svn.apache.org/viewvc?rev=908325&view=rev
Log:
OPENJPA-1334: Separate distribution policy from DataCacheManager.
Modified:
openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java?rev=908325&r1=908324&r2=908325&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfiguration.java Wed Feb 10 02:32:41 2010
@@ -21,6 +21,7 @@
import java.util.Collection;
import java.util.Map;
+import org.apache.openjpa.datacache.CacheDistributionPolicy;
import org.apache.openjpa.datacache.DataCache;
import org.apache.openjpa.datacache.DataCacheManager;
import org.apache.openjpa.datacache.DataCacheMode;
@@ -1799,5 +1800,42 @@
* @since 2.0.0
*/
public String getDataCacheMode();
+
+ /**
+ * Gets the policy object that determines distribution of cached instances
+ * across named partitions of L2 data cache.
+ *
+ * @return an implementation of {@link CacheDistributionPolicy}.
+ * @since 2.0.0
+ */
+ public CacheDistributionPolicy getCacheDistributionPolicyInstance();
+
+ /**
+ * Sets the policy object that determines distribution of cached instances
+ * across named partitions of L2 data cache.
+ *
+ * @param policy a non-null implementation of {@link CacheDistributionPolicy}.
+ * @since 2.0.0
+ */
+ public void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy);
+
+ /**
+ * Gets the plug-in string that described the policy to distribute cached instances
+ * across named partitions of L2 data cache.
+ *
+ * @return a plug-in string for {@link CacheDistributionPolicy}.
+ * @since 2.0.0
+ */
+ public String getCacheDistributionPolicy();
+
+ /**
+ * Sets the plug-in string that describes the policy to distribute cached instances
+ * across named partitions of L2 data cache.
+ *
+ * @param a plug-in string for {@link CacheDistributionPolicy}.
+ * @since 2.0.0
+ */
+ public void setCacheDistributionPolicy(String policyPlugin);
+
}