tmf: Add dispose methods to the state and stats backends
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / statesystem / ITmfStateSystem.java
index 91601d48c4c9b572823f69dbbb33b79c6e515d61..0c659591c1bb540bf9d747be74a09d1ead1ccd1a 100644 (file)
@@ -56,8 +56,19 @@ public interface ITmfStateSystem {
      * should return immediately. It's an alternative to listening to the
      * {@link org.eclipse.linuxtools.tmf.core.signal.TmfStateSystemBuildCompleted}
      * signal.
+     *
+     * @return If the build was successful. If false is returned, this either
+     *         means there was a problem during the build, or it got cancelled
+     *         before it could finished. In that case, no queries should be run
+     *         afterwards.
+     */
+    public boolean waitUntilBuilt();
+
+    /**
+     * Notify the state system that the trace is being closed, so it should
+     * clean up, close its files, etc.
      */
-    public void waitUntilBuilt();
+    public void dispose();
 
     /**
      * Return the current total amount of attributes in the system. This is also
This page took 0.024002 seconds and 5 git commands to generate.