Add tests for application context retrieval
[lttng-ust-java-tests.git] / lttng-tools-java / src / main / java / org / lttng / tools / ILttngSession.java
index a28a4aa555a90221f5c3b84fb687b5937024d186..704705f25f99b1a9746570adbb469b90fb4e77c6 100644 (file)
@@ -158,6 +158,20 @@ public interface ILttngSession extends AutoCloseable {
      */
     Set<String> listEvents();
 
+    /**
+     * Enable an application context with the provided retriever/context names.
+     *
+     * There is currently no direct command to remove an existing context, the
+     * session has to be destroyed and re-created to do so.
+     *
+     * @param retrieverName
+     *            The name of the retriever (or "namespace" of the context)
+     * @param contextName
+     *            The name of the context
+     * @return If the command executed successfully (return code = 0)
+     */
+    boolean enableAppContext(String retrieverName, String contextName);
+
     /**
      * Start tracing
      *
This page took 0.02273 seconds and 4 git commands to generate.