control: command support for enabling all tracepoints/syscalls
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / service / ILttngControlService.java
index 2a0da6c5cf6042db56bd204d165e631e0b989a6a..3f89b19bcc20fb71bc8c7e1a4ee2bd157b264241 100644 (file)
@@ -12,6 +12,7 @@
  **********************************************************************/
 package org.eclipse.tracecompass.internal.lttng2.control.ui.views.service;
 
+import java.util.Collections;
 import java.util.List;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -36,6 +37,12 @@ import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel
 */
 public interface ILttngControlService {
 
+
+    /**
+     * List to enable all events
+     */
+    @NonNull List<String> ALL_EVENTS = Collections.singletonList("*");  //$NON-NLS-1$
+
     /**
      * @return the LTTng version object
      */
@@ -362,19 +369,6 @@ public interface ILttngControlService {
             String eventName, boolean isKernel, List<String> contexts,
             IProgressMonitor monitor) throws ExecutionException;
 
-    /**
-     * Executes calibrate command to quantify LTTng overhead.
-     *
-     * @param isKernel
-     *            - a flag for indicating kernel or UST.
-     * @param monitor
-     *            - a progress monitor
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    void calibrate(boolean isKernel, IProgressMonitor monitor)
-            throws ExecutionException;
-
     /**
      * Records a snapshot.
      *
@@ -402,16 +396,34 @@ public interface ILttngControlService {
             throws ExecutionException;
 
     /**
-     * Load a session with given session name.
+     * Load all or a given session.
      *
-     * @param sessionName
-     *            - a session name to start
+     * @param inputPath
+     *            a input path to load session from or null for load all from default
+     * @param isForce
+     *            flag whether to overwrite existing or not
      * @param monitor
-     *            a progress monitor
+     *            a progress monitor
      * @throws ExecutionException
      *             If the command fails
      */
-    void loadSession(String sessionName, IProgressMonitor monitor)
+    void loadSession(@Nullable String inputPath, boolean isForce, IProgressMonitor monitor)
             throws ExecutionException;
 
+    /**
+     * Save all or a given session.
+     *
+     * @param session
+     *            a session name to save or null for all
+     * @param outputPath
+     *            a path to save session or null for default location
+     * @param isForce
+     *            flag whether to overwrite existing or not
+     * @param monitor
+     *            a progress monitor
+     * @throws ExecutionException
+     *             If the command fails
+     */
+    void saveSession(@Nullable String session, @Nullable String outputPath, boolean isForce, IProgressMonitor monitor)
+            throws ExecutionException;
 }
This page took 0.025335 seconds and 5 git commands to generate.