Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 77969 Details for
Bug 202064
More client-side intelligence (SmartReadAhead Thread)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Remove CDOReadAhead
ReadAhead.patch (text/plain), 3.73 KB, created by
Simon Mc Duff
on 2007-09-10 06:50:05 EDT
(
hide
)
Description:
Remove CDOReadAhead
Filename:
MIME Type:
Creator:
Simon Mc Duff
Created:
2007-09-10 06:50:05 EDT
Size:
3.73 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.cdo >Index: src/org/eclipse/emf/internal/cdo/analyzer/CDOReadAhead.java >=================================================================== >RCS file: src/org/eclipse/emf/internal/cdo/analyzer/CDOReadAhead.java >diff -N src/org/eclipse/emf/internal/cdo/analyzer/CDOReadAhead.java >--- src/org/eclipse/emf/internal/cdo/analyzer/CDOReadAhead.java 10 Sep 2007 07:38:31 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,121 +0,0 @@ >-/*************************************************************************** >- * Copyright (c) 2004 - 2007 Eike Stepper, Germany. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * Simon McDuff - initial API and implementation >- * Eike Stepper - maintenance >- **************************************************************************/ >-package org.eclipse.emf.internal.cdo.analyzer; >- >-import org.eclipse.emf.cdo.analyzer.CDOFetchRuleManager; >-import org.eclipse.emf.cdo.internal.protocol.analyzer.CDOFetchRule; >-import org.eclipse.emf.cdo.protocol.CDOID; >- >-import org.eclipse.net4j.internal.util.concurrent.QueueWorkerWorkSerializer; >-import org.eclipse.net4j.util.concurrent.IWorkSerializer; >- >-import org.eclipse.emf.internal.cdo.CDOSessionImpl; >-import org.eclipse.emf.internal.cdo.CDOViewImpl; >- >-import java.util.ArrayList; >-import java.util.Collection; >-import java.util.Iterator; >-import java.util.List; >-import java.util.Set; >- >-/** >- * @author Eike Stepper >- */ >-public class CDOReadAhead >-{ >- private IWorkSerializer workSerializer = new QueueWorkerWorkSerializer(); >- >- private CDOViewImpl view; >- >- public CDOReadAhead(CDOViewImpl view) >- { >- this.view = view; >- } >- >- public CDOViewImpl getView() >- { >- return view; >- } >- >- public void addIDs(Set<CDOID> ids) >- { >- CDODynamicFetchRuleAnalyzer dynamic = (CDODynamicFetchRuleAnalyzer)getView().getFeatureAnalyzer(); >- if (dynamic.getCurrentGraph().getFeatureRule().isActive()) >- { >- workSerializer.addWork(new ReceiverWork(ids)); >- } >- } >- >- /** >- * @author Eike Stepper >- */ >- private final class ReceiverWork implements Runnable >- { >- private Set<CDOID> ids; >- >- private CDODynamicFetchRuleAnalyzer dynamic; >- >- private CDOGraph graph; >- >- private CDOID context; >- >- /** >- * TODO Remove? >- */ >- private Test test = new Test(); >- >- private ReceiverWork(Set<CDOID> ids) >- { >- this.ids = ids; >- dynamic = (CDODynamicFetchRuleAnalyzer)getView().getFeatureAnalyzer(); >- graph = dynamic.getCurrentGraph(); >- context = dynamic.getContext(); >- } >- >- public void run() >- { >- CDODynamicFetchRuleManager.join(test); >- CDOSessionImpl s = getView().getSession(); >- s.getRevisionManager().getRevisions(ids, s.getReferenceChunkSize()); >- } >- >- /** >- * TODO Remove? >- * >- * @author Eike Stepper >- */ >- @Deprecated >- private final class Test implements CDOFetchRuleManager >- { >- public Test() >- { >- } >- >- public CDOID getContext() >- { >- return context; >- } >- >- public List<CDOFetchRule> getFetchRules(Collection<CDOID> ids) >- { >- List<CDOFetchRule> list = new ArrayList<CDOFetchRule>(); >- for (Iterator<CDOFetchRule> it = graph.getFeatureRule().iterator(); it.hasNext();) >- { >- CDOFetchRule fetchRule = it.next(); >- list.add(fetchRule); >- } >- >- return list; >- } >- } >- } >-}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202064
:
77860
|
77861
|
77950
| 77969 |
78135
|
78236
|
78242
|
78243
|
78395