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 fd20a9ebc1d8246b67f5b0f7027a5288494b4579..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.
  *
@@ -93,4 +96,12 @@ public interface ILttngAgent<T extends ILttngHandler> {
         * @return True if the event is currently enabled, false if it is not.
         */
        boolean isEventEnabled(String eventName);
+
+       /**
+        * Return the list of application contexts enabled in the tracing sessions.
+        *
+        * @return The application contexts, first indexed by retriever name, then
+        *         by context name
+        */
+       Collection<Map.Entry<String, Map<String, Integer>>> getEnabledAppContexts();
 }
This page took 0.023214 seconds and 4 git commands to generate.