Implement Java agent application context retrieval
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / ILttngAgent.java
index 044bdf07c3adebb3f5085a1430d6f0d057fb0c05..5de0924256bfa59156c47ea861830c01c52c4f25 100644 (file)
@@ -17,6 +17,9 @@
 
 package org.lttng.ust.agent;
 
+import java.util.Collection;
+import java.util.Map;
+
 /**
  * Interface to define LTTng Java agents.
  *
@@ -86,8 +89,7 @@ public interface ILttngAgent<T extends ILttngHandler> {
 
        /**
         * Query if a given event is currently enabled in a current tracing session,
-        * meaning it should be sent to UST. May be quicker than listing all events
-        * via {@link #listEnabledEvents()}.
+        * meaning it should be sent to UST.
         *
         * @param eventName
         *            The name of the event to check.
@@ -96,9 +98,10 @@ public interface ILttngAgent<T extends ILttngHandler> {
        boolean isEventEnabled(String eventName);
 
        /**
-        * List the all events currently enabled in the current tracing sessions.
+        * Return the list of application contexts enabled in the tracing sessions.
         *
-        * @return The list of enabled events
+        * @return The application contexts, first indexed by retriever name, then
+        *         by context name
         */
-       Iterable<String> listEnabledEvents();
+       Collection<Map.Entry<String, Map<String, Integer>>> getEnabledAppContexts();
 }
This page took 0.024473 seconds and 4 git commands to generate.