Add tests for application context retrieval
[lttng-ust-java-tests.git] / lttng-tools-java / src / main / java / org / lttng / tools / LttngCommandLineSession.java
index 171cffbf08ac3559e2c9d365a04a3ff8fda05bf0..3859e2fcd49ca11bd40ebe122ad833de1b8f299b 100644 (file)
@@ -147,6 +147,14 @@ class LttngCommandLineSession implements ILttngSession {
                 .collect(Collectors.toSet());
     }
 
+    @Override
+    public boolean enableAppContext(String retrieverName, String contextName) {
+        return executeCommand(Arrays.asList(
+                "lttng", "add-context", domain.flag(),
+                "-t", "$app." + retrieverName + ':' + contextName,
+                "-s", sessionName));
+    }
+
     @Override
     public boolean start() {
         /*
This page took 0.036027 seconds and 4 git commands to generate.