Class SynchronizationManager
java.lang.Object
org.eclipse.tracecompass.tmf.core.component.TmfComponent
org.eclipse.tracecompass.tmf.core.synchronization.SynchronizationManager
- All Implemented Interfaces:
ITmfComponent
This abstract manager class handles loading trace synchronization data or
otherwise their calculation.
- Author:
- Geneviève Bastien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SynchronizationAlgorithmsynchronizeTraces(File syncFile, Collection<@NonNull ITmfTrace> traces, boolean doSync) Function called to synchronize traces using the fully incremental synchronization algorithmstatic SynchronizationAlgorithmsynchronizeTraces(File syncFile, Collection<@NonNull ITmfTrace> traces, SynchronizationAlgorithm algo, boolean doSync) Function called to synchronize traces with a specific synchronization algorithm.Methods inherited from class org.eclipse.tracecompass.tmf.core.component.TmfComponent
broadcast, broadcastAsync, dispose, getName, init
-
Constructor Details
-
SynchronizationManager
public SynchronizationManager()
-
-
Method Details
-
synchronizeTraces
public static SynchronizationAlgorithm synchronizeTraces(File syncFile, Collection<@NonNull ITmfTrace> traces, boolean doSync) Function called to synchronize traces using the fully incremental synchronization algorithm- Parameters:
syncFile- The target name of the synchronization file. If it exists, it will be opened, otherwise it will be created and data from this synchro run will be saved theretraces- The list of traces to synchronizedoSync- Whether to actually synchronize or just try opening a sync file- Returns:
- The synchronization object
-
synchronizeTraces
public static SynchronizationAlgorithm synchronizeTraces(File syncFile, Collection<@NonNull ITmfTrace> traces, SynchronizationAlgorithm algo, boolean doSync) Function called to synchronize traces with a specific synchronization algorithm. If a synchronization already exists, but is not the requested algorithm, the synchronization is done again using the new algorithm- Parameters:
syncFile- The target name of the synchronization file. If it exists, it will be opened, otherwise it will be created and data from this synchro run will be saved theretraces- The list of traces to synchronizealgo- A synchronization algorithm object to determine the algorithm used to synchronization.doSync- Whether to actually synchronize or just try opening a sync file- Returns:
- The synchronization object
-