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=5ab95f21ee83d790871f64a501d0af4072329bc1;hp=b6d0aedefec830494eaae9d11f27e0baefa362c2;hpb=f37120c3b2ab31a67fab2da79f5ad6ca0145f5aa;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 b6d0aed..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 @@ -19,6 +19,7 @@ package org.lttng.tools; import java.util.List; +import java.util.Set; /** * Java representation of a LTTng tracing session. @@ -149,6 +150,28 @@ public interface ILttngSession extends AutoCloseable { */ boolean disableAllEvents(); + /** + * Get a list of events currently available (exposed by applications) in the + * session's domain. + * + * @return The list of available events + */ + 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 *