+ /**
+ * Utility method to destroy all existing sessions. Useful when first
+ * setting up a test to make sure no existing session interferes.
+ */
+ public static void destroyAllSessions() {
+ executeCommand(Arrays.asList("lttng", "destroy", "-a"));
+ }
+