Class SynchronizationManager

java.lang.Object
org.eclipse.tracecompass.tmf.core.component.TmfComponent
org.eclipse.tracecompass.tmf.core.synchronization.SynchronizationManager
All Implemented Interfaces:
ITmfComponent

public abstract class SynchronizationManager extends TmfComponent
This abstract manager class handles loading trace synchronization data or otherwise their calculation.
Author:
Geneviève Bastien
  • 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 there
      traces - The list of traces to synchronize
      doSync - 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 there
      traces - The list of traces to synchronize
      algo - 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