Cleanup: Add Javadoc to all public methods and members
[deliverable/lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / LTTngAgent.java
index ca7bc777fa24b1042acf3d41bbd27fcc4e73a547..e83504d94d8f3f26072cca3b0765da8182597850 100644 (file)
@@ -22,6 +22,11 @@ import java.lang.reflect.InvocationTargetException;
 import java.util.concurrent.Semaphore;
 import java.util.concurrent.TimeUnit;
 
+/**
+ * The central agent managing the JUL and Log4j handlers.
+ *
+ * @author David Goulet
+ */
 public class LTTngAgent {
 
        /* Domains */
@@ -181,8 +186,11 @@ public class LTTngAgent {
                }
        }
 
-       /*
+       /**
         * Public getter to acquire a reference to this singleton object.
+        *
+        * @return The agent instance
+        * @throws IOException
         */
        public static synchronized LTTngAgent getLTTngAgent() throws IOException {
                if (curAgent == null) {
@@ -273,8 +281,11 @@ public class LTTngAgent {
                return numThreads;
        }
 
-
-       public void dispose() throws IOException {
+       /**
+        * Dispose the agent. Applications should call this once they are done
+        * logging.
+        */
+       public void dispose() {
                if (this.useJUL) {
                        julUserClient.destroy();
                        julRootClient.destroy();
This page took 0.023887 seconds and 5 git commands to generate.