+ static ILttngSession createSession(String sessionName, Domain domain) {
+ return createCommandLineSession(sessionName, domain);
+ }
+
+ /**
+ * Create a new LTTng tracing session, which will use the command-line
+ * "lttng" utility.
+ *
+ * @param sessionName
+ * The name of the session to use. It can be null, in which case
+ * we will provide a unique random name.
+ * @param domain
+ * The tracing domain of this session
+ * @return The new session object
+ */
+ static ILttngSession createCommandLineSession(String sessionName, Domain domain) {