|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.model.versioning.operations.util.ChangePackageUtil
public final class ChangePackageUtil
Change package helper class.
Method Summary | |
---|---|
static int |
countLeafOperations(AbstractOperation operation)
Count all leaf operations of a single AbstractOperation s. |
static int |
countLeafOperations(Collection<AbstractOperation> operations)
Count all leaf operations of a collection of AbstractOperation s. |
static int |
countLeafOperations(List<AbstractChangePackage> changePackages)
Count all leaf operations of all operations contained in the given list of ChangePackage s. |
static int |
countOperations(List<AbstractChangePackage> changePackages)
Count all root operations within the given list of ChangePackage s. |
static AbstractChangePackage |
createChangePackage(boolean useInMemoryChangePackage)
Creates a new AbstractChangePackage depending on the client configuration behavior whether
to create in-memory of file-based change packages. |
static Iterator<ChangePackageEnvelope> |
splitChangePackage(AbstractChangePackage changePackage,
int changePackageFragmentSize)
Given a single change package, splits it into multiple fragments. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AbstractChangePackage createChangePackage(boolean useInMemoryChangePackage)
AbstractChangePackage
depending on the client configuration behavior whether
to create in-memory of file-based change packages.
useInMemoryChangePackage
- whether an in-memory change package should be created
public static Iterator<ChangePackageEnvelope> splitChangePackage(AbstractChangePackage changePackage, int changePackageFragmentSize)
changePackage
- the change package to be splittedchangePackageFragmentSize
- the max number of operations a single fragment may consists of
public static int countLeafOperations(Collection<AbstractOperation> operations)
AbstractOperation
s.
operations
- a collection of operations
public static int countLeafOperations(AbstractOperation operation)
AbstractOperation
s.
operation
- a single operation
public static int countLeafOperations(List<AbstractChangePackage> changePackages)
ChangePackage
s.
changePackages
- list of change packages
public static int countOperations(List<AbstractChangePackage> changePackages)
ChangePackage
s.
changePackages
- list of change packages
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |