X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-tools-java%2Fsrc%2Fmain%2Fjava%2Forg%2Flttng%2Ftools%2FILttngSession.java;h=704705f25f99b1a9746570adbb469b90fb4e77c6;hb=73fb67850f841baaa164b86a2e739917da4247e2;hp=a28a4aa555a90221f5c3b84fb687b5937024d186;hpb=c5796c3e1ef6fd9b05a5f6096923905154fd17ad;p=lttng-ust-java-tests.git diff --git a/lttng-tools-java/src/main/java/org/lttng/tools/ILttngSession.java b/lttng-tools-java/src/main/java/org/lttng/tools/ILttngSession.java index a28a4aa..704705f 100644 --- a/lttng-tools-java/src/main/java/org/lttng/tools/ILttngSession.java +++ b/lttng-tools-java/src/main/java/org/lttng/tools/ILttngSession.java @@ -158,6 +158,20 @@ public interface ILttngSession extends AutoCloseable { */ Set 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 *