public class DynamicResourceClusteringPolicy extends java.lang.Object implements IResourceClusteringPolicy
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
MINIMUM_CLUSTER_SIZE  | 
static java.lang.String | 
MINIMUM_FREE_MEMORY  | 
static java.lang.String | 
MINIMUM_PERCENT_FREE_MEMORY  | 
| Constructor and Description | 
|---|
DynamicResourceClusteringPolicy()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
int | 
getMinimumClusterSize()  | 
long | 
getMinimumFreeMemory()  | 
long | 
getMinimumPercentFreeMemory()  | 
protected void | 
logClusterCapped(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                int alreadyProcessed,
                long freeMemory,
                long totalMemory)  | 
void | 
setMinimumClusterSize(int minimumClusterSize)  | 
void | 
setMinimumFreeMemory(long minimumFreeMemory)  | 
void | 
setMinimumPercentFreeMemory(long minimumPercentFreeMemory)  | 
public static final java.lang.String MINIMUM_FREE_MEMORY
public static final java.lang.String MINIMUM_CLUSTER_SIZE
public static final java.lang.String MINIMUM_PERCENT_FREE_MEMORY
public boolean continueProcessing(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                         org.eclipse.emf.common.util.URI next,
                         int alreadyProcessed)
IResourceClusteringPolicycontinueProcessing in interface IResourceClusteringPolicyresourceSet - 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.true if another resource should be processed, false if a new cluster should be
         created.protected void logClusterCapped(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                    int alreadyProcessed,
                    long freeMemory,
                    long totalMemory)
public long getMinimumFreeMemory()
public void setMinimumFreeMemory(long minimumFreeMemory)
public int getMinimumClusterSize()
public void setMinimumClusterSize(int minimumClusterSize)
public long getMinimumPercentFreeMemory()
public void setMinimumPercentFreeMemory(long minimumPercentFreeMemory)