Add support for aarch64_be
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / client / ILttngTcpClientListener.java
index 031d4e048863c4e74802e03a90029c17401b6896..21189730befb9bb353d68740fc0b5248011defce 100644 (file)
@@ -17,6 +17,8 @@
 
 package org.lttng.ust.agent.client;
 
+import java.util.Collection;
+
 import org.lttng.ust.agent.session.EventRule;
 
 /**
@@ -53,9 +55,42 @@ public interface ILttngTcpClientListener {
        boolean eventDisabled(String eventName);
 
        /**
-        * List the all events currently enabled in the current tracing sessions.
+        * Callback for the TCP client to notify the listener agent that a request
+        * for enabling an application-specific context was sent from the session
+        * daemon.
+        *
+        * @param contextRetrieverName
+        *            The name of the retriever in which the context is present.
+        *            This is used to namespace the contexts.
+        * @param contextName
+        *            The name of the context that was requested to be enabled
+        * @return Since we do not track individual sessions, right now this command
+        *         cannot fail. It will always return true.
+        */
+       boolean appContextEnabled(String contextRetrieverName, String contextName);
+
+       /**
+        * Callback for the TCP client to notify the listener agent that a request
+        * for disabling an application-specific context was sent from the session
+        * daemon.
+        *
+        * @param contextRetrieverName
+        *            The name of the retriever in which the context is present.
+        *            This is used to namespace the contexts.
+        * @param contextName
+        *            The name of the context that was requested to be disabled.
+        * @return True if the command completed successfully, false if we should
+        *         report an error (context was not previously enabled for example)
+        */
+       boolean appContextDisabled(String contextRetrieverName, String contextName);
+
+       /**
+        * List the events that are available in the agent's tracing domain.
+        *
+        * In Java terms, this means loggers that have at least one LTTng log
+        * handler of their corresponding domain attached.
         *
-        * @return The list of enabled events
+        * @return The list of available events
         */
-       Iterable<String> listEnabledEvents();
+       Collection<String> listAvailableEvents();
 }
This page took 0.034219 seconds and 4 git commands to generate.