**********************************************************************/
package org.eclipse.tracecompass.internal.lttng2.control.ui.views.service;
+import java.util.Collections;
import java.util.List;
import org.eclipse.core.commands.ExecutionException;
*/
public interface ILttngControlService {
+
+ /**
+ * List to enable all events
+ */
+ @NonNull List<String> ALL_EVENTS = Collections.singletonList("*"); //$NON-NLS-1$
+
/**
* @return the LTTng version object
*/
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.
*
*/
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;
}