Remove unnecessary methods in LTTng Tracer Control model
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / model / impl / TraceSessionComponent.java
index 11be7ea7ed7fc849df9df466f2df7fdb6d866074..698d4842ccd1f8ef8eac941650be76749b78f4d4 100644 (file)
@@ -16,7 +16,6 @@ import java.util.List;
 
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo;
 import org.eclipse.linuxtools.internal.lttng2.core.control.model.IDomainInfo;
 import org.eclipse.linuxtools.internal.lttng2.core.control.model.ISessionInfo;
@@ -230,16 +229,6 @@ public class TraceSessionComponent extends TraceControlComponent {
     // Operations
     // ------------------------------------------------------------------------
 
-    /**
-     * Retrieves the session configuration from the node.
-     *
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void getConfigurationFromNode() throws ExecutionException {
-        getConfigurationFromNode(new NullProgressMonitor());
-    }
-
     /**
      * Retrieves the session configuration from the node.
      *
@@ -261,16 +250,6 @@ public class TraceSessionComponent extends TraceControlComponent {
         }
     }
 
-    /**
-     * Starts the session.
-     *
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void startSession() throws ExecutionException {
-        startSession(new NullProgressMonitor());
-    }
-
     /**
      * Starts the session.
      *
@@ -284,16 +263,6 @@ public class TraceSessionComponent extends TraceControlComponent {
         getControlService().startSession(getName(), monitor);
     }
 
-    /**
-     * Starts the session.
-     *
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void stopSession() throws ExecutionException {
-        startSession(new NullProgressMonitor());
-    }
-
     /**
      * Starts the session.
      *
@@ -306,26 +275,6 @@ public class TraceSessionComponent extends TraceControlComponent {
         getControlService().stopSession(getName(), monitor);
     }
 
-    /**
-     * Enables channels with given names which are part of this domain. If a
-     * given channel doesn't exists it creates a new channel with the given
-     * parameters (or default values if given parameter is null).
-     *
-     * @param channelNames
-     *            - a list of channel names to enable on this domain
-     * @param info
-     *            - channel information to set for the channel (use null for
-     *            default)
-     * @param isKernel
-     *            - a flag for indicating kernel or UST.
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void enableChannels(List<String> channelNames, IChannelInfo info,
-            boolean isKernel) throws ExecutionException {
-        enableChannels(channelNames, info, isKernel, new NullProgressMonitor());
-    }
-
     /**
      * Enables channels with given names which are part of this domain. If a
      * given channel doesn't exists it creates a new channel with the given
@@ -350,23 +299,6 @@ public class TraceSessionComponent extends TraceControlComponent {
                 info, monitor);
     }
 
-    /**
-     * Enables a list of events with no additional parameters.
-     *
-     * @param eventNames
-     *            - a list of event names to enabled.
-     * @param isKernel
-     *            - a flag for indicating kernel or UST.
-     * @param filterExpression
-     *            - a filter expression
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void enableEvent(List<String> eventNames, boolean isKernel, String filterExpression)
-            throws ExecutionException {
-        enableEvents(eventNames, isKernel, filterExpression, new NullProgressMonitor());
-    }
-
     /**
      * Enables a list of events with no additional parameters.
      *
@@ -387,16 +319,6 @@ public class TraceSessionComponent extends TraceControlComponent {
                 filterExpression, monitor);
     }
 
-    /**
-     * Enables all syscalls (for kernel domain)
-     *
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void enableSyscalls() throws ExecutionException {
-        enableSyscalls(new NullProgressMonitor());
-    }
-
     /**
      * Enables all syscalls (for kernel domain)
      *
@@ -410,23 +332,6 @@ public class TraceSessionComponent extends TraceControlComponent {
         getControlService().enableSyscalls(getName(), null, monitor);
     }
 
-    /**
-     * Enables a dynamic probe (for kernel domain)
-     *
-     * @param eventName
-     *            - event name for probe
-     * @param isFunction
-     *            - true for dynamic function entry/return probe else false
-     * @param probe
-     *            - the actual probe
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void enableProbe(String eventName, boolean isFunction, String probe)
-            throws ExecutionException {
-        enableProbe(eventName, isFunction, probe, new NullProgressMonitor());
-    }
-
     /**
      * Enables a dynamic probe (for kernel domain)
      *
@@ -447,26 +352,6 @@ public class TraceSessionComponent extends TraceControlComponent {
                 probe, monitor);
     }
 
-    /**
-     * Enables events using log level.
-     *
-     * @param eventName
-     *            - a event name
-     * @param logLevelType
-     *            - a log level type
-     * @param level
-     *            - a log level
-     * @param filterExpression
-     *            - a filter expression
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public void enableLogLevel(String eventName, LogLevelType logLevelType,
-            TraceLogLevel level, String filterExpression) throws ExecutionException {
-        enableLogLevel(eventName, logLevelType, level, filterExpression,
-                new NullProgressMonitor());
-    }
-
     /**
      * Enables events using log level.
      *
@@ -490,17 +375,6 @@ public class TraceSessionComponent extends TraceControlComponent {
                 logLevelType, level, null, monitor);
     }
 
-    /**
-     * Gets all available contexts to be added to channels/events.
-     *
-     * @return the list of available contexts
-     * @throws ExecutionException
-     *             If the command fails
-     */
-    public List<String> getContextList() throws ExecutionException {
-        return getContextList(new NullProgressMonitor());
-    }
-
     /**
      * Gets all available contexts to be added to channels/events.
      *
This page took 0.026252 seconds and 5 git commands to generate.