X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Flttng%2Ftools%2FILttngSession.java;h=e7d65a0f29a8224cba6aa20ecf9737bb4c4525fa;hb=ff620befefbb7be90965d845e76bc826eca2d951;hp=c8b532ca23ac36b24e137835498f6cf76b067e52;hpb=45d1768cc5aa27806687d5378b4091dbef125e57;p=lttng-ust-java-tests.git diff --git a/src/test/java/org/lttng/tools/ILttngSession.java b/src/test/java/org/lttng/tools/ILttngSession.java index c8b532c..e7d65a0 100644 --- a/src/test/java/org/lttng/tools/ILttngSession.java +++ b/src/test/java/org/lttng/tools/ILttngSession.java @@ -55,8 +55,7 @@ public interface ILttngSession extends AutoCloseable { // ------------------------------------------------------------------------ /** - * Constructor to create a new LTTng tracing session, which will use the - * command-line "lttng" utility. + * Create a new LTTng tracing session using the default backend. * * @param sessionName * The name of the session to use. It can be null, in which case @@ -65,7 +64,22 @@ public interface ILttngSession extends AutoCloseable { * The tracing domain of this session * @return The new session object */ - static ILttngSession newCommandLineSession(String sessionName, Domain domain) { + 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) { return new LttngCommandLineSession(sessionName, domain); }