import org.junit.After;
import org.junit.Before;
+import org.lttng.tools.ILttngSession;
+import org.lttng.tools.ILttngSession.Domain;
import org.lttng.ust.agent.LTTngAgent;
import org.lttng.ust.agent.benchmarks.jul.handler.JulHandlerBenchmarkBase;
-import org.lttng.ust.agent.utils.LttngSession;
-import org.lttng.ust.agent.utils.LttngSession.Domain;
/**
* Benchmark for the LTTng-UST handler, using the legacy API. Tracing is
@SuppressWarnings("deprecation")
public class OldLttngJulHandlerTracingDisabledBenchmark extends JulHandlerBenchmarkBase {
- private LttngSession session;
+ private ILttngSession session;
/**
* Test setup
public void testSetup() {
LTTngAgent.getLTTngAgent();
- session = new LttngSession(null, Domain.JUL);
+ session = ILttngSession.newCommandLineSession(null, Domain.JUL);
assertTrue(session.enableEvents("non-event"));
assertTrue(session.start());
}