Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban Dugueperoux2014-07-10 11:37:29 +0000
committerEsteban DUGUEPEROUX2014-12-22 11:50:22 +0000
commitacd14288558beb396785c1464f67b6d431f5442c (patch)
tree2ad75b98bb317d335b37fc94f3d892485fc71ea2 /plugins/org.eclipse.emf.cdo.server
parent9f4ef75f80b9ccbdce23015547fd6c8b7e4a8235 (diff)
downloadcdo-acd14288558beb396785c1464f67b6d431f5442c.tar.gz
cdo-acd14288558beb396785c1464f67b6d431f5442c.tar.xz
cdo-acd14288558beb396785c1464f67b6d431f5442c.zip
[439337] Have CDOLockState prefetch to improve loading time
- Have CDOLockState prefetch to improve loading time when an EContentAdapter exists on the ResourceSet. - Bugzilla_439337_Test added to the suite to test CDOLockState prefetch. - CDOView.options().isLockStatePrefetchEnabled()/setLockStatePrefetchEnabled() new option has been added to the API to allow CDOLockStates prefetch. - org.eclipse.emf.cdo.common.revision.CDORevisionsLoadedEvent has been added in API to be notified of new CDORevision loaded from RevisionLoader. - The difficulty is to have CDOViewImpl.objects cache filled before updating the CDOViewImpl.lockStates cache. Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439337 Change-Id: I061d91b30f732f8d67eaeb6215b4039e36d73f2d Signed-off-by: Esteban Dugueperoux <esteban.dugueperoux@obeo.fr>
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server')
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/ServerCDOView.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/ServerCDOView.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/ServerCDOView.java
index 76c298f4eb..c10911cb2d 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/ServerCDOView.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/ServerCDOView.java
@@ -48,6 +48,7 @@ import org.eclipse.emf.cdo.view.CDOAdapterPolicy;
import org.eclipse.emf.cdo.view.CDOFeatureAnalyzer;
import org.eclipse.emf.cdo.view.CDOFetchRuleManager;
import org.eclipse.emf.cdo.view.CDOInvalidationPolicy;
+import org.eclipse.emf.cdo.view.CDOLockStateLoadingPolicy;
import org.eclipse.emf.cdo.view.CDORevisionPrefetchingPolicy;
import org.eclipse.emf.cdo.view.CDOStaleReferencePolicy;
import org.eclipse.emf.cdo.view.CDOView;
@@ -371,11 +372,30 @@ public class ServerCDOView extends AbstractCDOView implements org.eclipse.emf.cd
return false;
}
+ public boolean isLockStatePrefetchEnabled()
+ {
+ return false;
+ }
+
public void setLockNotificationEnabled(boolean enabled)
{
throw new UnsupportedOperationException();
}
+ public CDOLockStateLoadingPolicy getLockStateLoadingPolicy()
+ {
+ return null;
+ }
+
+ public void setLockStateLoadingPolicy(CDOLockStateLoadingPolicy lockStateLoadingPolicy)
+ {
+ }
+
+ public void setLockStatePrefetchEnabled(boolean enabled)
+ {
+ throw new UnsupportedOperationException();
+ }
+
public CDOAdapterPolicy[] getChangeSubscriptionPolicies()
{
return ADAPTER_POLICIES;

Back to the top