Package org.eclipse.emf.cdo.util
Class CDOBalancedTree
- java.lang.Object
- 
- org.eclipse.emf.cdo.util.CDOBalancedTree
 
- 
 public class CDOBalancedTree extends java.lang.ObjectA utility class that attachesobjectsto afolderrooted, balanced tree such that configurable capacities for resources per folder and objects per resource are never exceeded. This class is useful if a large number of objects does not form a tree naturally but long lists would hinder fast lazy loading.- Since:
- 4.1
- Author:
- Eike Stepper
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_CAPACITYstatic intDEFAULT_LOCK_TIMEOUT
 - 
Constructor SummaryConstructors Constructor Description CDOBalancedTree(CDOResourceFolder root)CDOBalancedTree(CDOResourceFolder root, int nodeCapacity)CDOBalancedTree(CDOResourceFolder root, int folderCapacity, int resourceCapacity)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObject(org.eclipse.emf.ecore.EObject object)intgetFolderCapacity()intgetLockAttempts()longgetLockTimeout()intgetResourceCapacity()CDOResourceFoldergetRoot()voidsetLockAttempts(int lockAttempts)voidsetLockTimeout(long lockTimeout)
 
- 
- 
- 
Field Detail- 
DEFAULT_CAPACITYpublic static final int DEFAULT_CAPACITY - See Also:
- Constant Field Values
 
 - 
DEFAULT_LOCK_TIMEOUTpublic static final int DEFAULT_LOCK_TIMEOUT - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CDOBalancedTreepublic CDOBalancedTree(CDOResourceFolder root, int folderCapacity, int resourceCapacity) 
 - 
CDOBalancedTreepublic CDOBalancedTree(CDOResourceFolder root, int nodeCapacity) 
 - 
CDOBalancedTreepublic CDOBalancedTree(CDOResourceFolder root) 
 
- 
 - 
Method Detail- 
getRootpublic final CDOResourceFolder getRoot() 
 - 
getFolderCapacitypublic final int getFolderCapacity() 
 - 
getResourceCapacitypublic final int getResourceCapacity() 
 - 
getLockAttemptspublic final int getLockAttempts() 
 - 
setLockAttemptspublic final void setLockAttempts(int lockAttempts) 
 - 
getLockTimeoutpublic final long getLockTimeout() 
 - 
setLockTimeoutpublic final void setLockTimeout(long lockTimeout) 
 - 
addObjectpublic void addObject(org.eclipse.emf.ecore.EObject object) 
 
- 
 
-