org.eclipse.xtext.builder.clustering
Class DynamicResourceClusteringPolicy
java.lang.Object
org.eclipse.xtext.builder.clustering.DynamicResourceClusteringPolicy
- All Implemented Interfaces:
- IResourceClusteringPolicy
public class DynamicResourceClusteringPolicy
- extends java.lang.Object
- implements IResourceClusteringPolicy
- Author:
- Knut Wannheden - Initial contribution and API
Method Summary |
boolean |
continueProcessing(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.util.URI next,
int alreadyProcessed)
Determine whether another resource should be loaded into the resource set and be processed. |
protected void |
logClusterCapped(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
int alreadyProcessed,
long freeMemory,
long totalMemory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MINIMUM_CLUSTER_SIZE
public static final java.lang.String MINIMUM_CLUSTER_SIZE
- See Also:
- Constant Field Values
MINIMUM_PERCENT_FREE_MEMORY
public static final java.lang.String MINIMUM_PERCENT_FREE_MEMORY
- See Also:
- Constant Field Values
DynamicResourceClusteringPolicy
public DynamicResourceClusteringPolicy()
continueProcessing
public boolean continueProcessing(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.util.URI next,
int alreadyProcessed)
- Description copied from interface:
IResourceClusteringPolicy
- Determine whether another resource should be loaded into the resource set and be processed.
- Specified by:
continueProcessing
in interface IResourceClusteringPolicy
- Parameters:
resourceSet
- The resource set, containing all currently loaded resources.next
- The next URI to be processed. Can be null
if yet unknown.alreadyProcessed
- The number of already processed resources. Note that the resource set may contain more resources.
- Returns:
true
if another resource should be processed, false
if a new cluster should be
created.
logClusterCapped
protected void logClusterCapped(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
int alreadyProcessed,
long freeMemory,
long totalMemory)