Add support for streaming feature of LTTng Tools 2.1 (part 1)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / service / ILttngControlService.java
index 4499a09dd9c30305f85e54433c87f4d92b0915c8..b068361add33b7301b840933b7eff9004b8cd7cc 100644 (file)
@@ -120,6 +120,52 @@ public interface ILttngControlService {
     public ISessionInfo createSession(String sessionName, String sessionPath,
             IProgressMonitor monitor) throws ExecutionException;
 
+    /**
+     * Creates a session with given session name and location.
+     *
+     * @param sessionName
+     *            - a session name to create
+     * @param sessionPath
+     *            - a path for storing the traces (use null for default)
+     * @param noConsumer
+     *            - a flag to indicate no consumer
+     * @param disableConsumer
+     *            - a flag to disable consumer
+     * @param monitor
+     *            - a progress monitor
+     * @return the session information
+     * @throws ExecutionException
+     *             If the command fails
+     */
+    public ISessionInfo createSession(String sessionName, String sessionPath, boolean noConsumer, boolean disableConsumer,
+            IProgressMonitor monitor) throws ExecutionException;
+
+
+    /**
+     * Creates a session with given session name and location.
+     *
+     * @param sessionName
+     *            - a session name to create
+     * @param networkUrl
+     *            - a network URL for common definition of data and control channel
+     *              or null if separate definition of data and control channel
+     * @param controlUrl
+     *            - a URL for control channel (networkUrl has to be null, dataUrl has to be set)
+     * @param dataUrl
+     *            - a URL for data channel (networkUrl has to be null, controlUrl has to be set)
+     * @param noConsumer
+     *            - a flag to indicate no consumer
+     * @param disableConsumer
+     *            - a flag to disable consumer
+     * @param monitor
+     *            - a progress monitor
+     * @return the session information
+     * @throws ExecutionException
+     *             If the command fails
+     */
+    public ISessionInfo createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl, boolean noConsumer, boolean disableConsumer,
+            IProgressMonitor monitor) throws ExecutionException;
+
     /**
      * Destroys a session with given session name.
      *
This page took 0.028763 seconds and 5 git commands to generate.