Added some more JUnit tests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / service / ILttngControlService.java
index 8d1cc48bed407f16b3b1e530800bfcd3f65076dc..6db57557206c65a7adaaf762766b4efeabfc015b 100644 (file)
@@ -19,6 +19,8 @@ import org.eclipse.linuxtools.lttng.ui.views.control.model.IBaseEventInfo;
 import org.eclipse.linuxtools.lttng.ui.views.control.model.IChannelInfo;
 import org.eclipse.linuxtools.lttng.ui.views.control.model.ISessionInfo;
 import org.eclipse.linuxtools.lttng.ui.views.control.model.IUstProviderInfo;
+import org.eclipse.linuxtools.lttng.ui.views.control.model.LogLevelType;
+import org.eclipse.linuxtools.lttng.ui.views.control.model.TraceLogLevel;
 
 
 /** <b><u>ILttngControlService</u></b>
@@ -104,22 +106,77 @@ public interface ILttngControlService {
      /**
       * Enables a list of channels for given session and given channel information (configuration). 
       * @param sessionName - a session name to create
-      * @param channelNames - a list of channel names to enable
+      * @param channelNames - a list of channel names to be enabled
       * @param isKernel - a flag to indicate Kernel or UST (true for Kernel, false for UST) 
       * @param info - channel information used for creation of a channel (or null for default)
       * @param monitor - a progress monitor 
       * @throws ExecutionException
       */
-    public void enableChannel(String sessionName, List<String> channelNames, boolean isKernel, IChannelInfo info, IProgressMonitor monitor) throws ExecutionException;
+    public void enableChannels(String sessionName, List<String> channelNames, boolean isKernel, IChannelInfo info, IProgressMonitor monitor) throws ExecutionException;
 
      /**
       * Disables a list of channels for given session and given channel information (configuration). 
       * @param sessionName - a session name to create
-      * @param channelNames - a list of channel names to enable
+      * @param channelNames - a list of channel names to be enabled
       * @param isKernel - a flag to indicate Kernel or UST (true for Kernel, false for UST) 
       * @param monitor - a progress monitor 
       * @throws ExecutionException
       */
-    public void disableChannel(String sessionName, List<String> channelNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException;
+    public void disableChannels(String sessionName, List<String> channelNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException;
+
+    /**
+     * Enables a list of events with no additional parameters.
+     * @param sessionName - a session name
+     * @param channelName - a channel name or null for default channel
+     * @param eventNames - a list of event names to be enabled, or null (list of size = 0)for all events .
+     * @param isKernel -  a flag for indicating kernel or UST.
+     * @param monitor - a progress monitor
+     * @throws ExecutionException
+     */
+    public void enableEvents(String sessionName, String channelName, List<String> eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException;
+
+    /**
+     * Enables all syscall events.
+     * @param sessionName - a session name
+     * @param channelName - a channel name or null for default channel
+     * @param monitor - a progress monitor
+     * @throws ExecutionException
+     */
+    public void enableSyscalls(String sessionName, String channelName, IProgressMonitor monitor) throws ExecutionException;
+
+    /**
+     * Enables a dynamic probe or dynamic function entry/return probe.
+     * @param sessionName - a session name
+     * @param channelName - a channel name or null for default channel
+     * @param eventName - a event name
+     * @param isFunction - true for dynamic function entry/return probe else false 
+     * @param probe - a dynamic probe information
+     * @param monitor - a progress monitor
+     * @throws ExecutionException
+     */
+    public void enableProbe(String sessionName, String channelName, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException;
+
+    /**
+     * Enables events using log level
+     * @param sessionName - a session name
+     * @param channelName - a channel name (null for default channel)
+     * @param eventName - a event name
+     * @param logLevelType - a log level type 
+     * @param level - a log level 
+     * @param monitor - a progress monitor  
+     * @throws ExecutionException
+     */
+    public void enableLogLevel(String sessionName, String channelName, String eventName, LogLevelType logLevelType, TraceLogLevel level, IProgressMonitor monitor) throws ExecutionException;    
     
+    /**
+     * Disables a list of events with no additional parameters.
+     * @param sessionName - a session name
+     * @param channelName - a channel name (null for default channel)
+     * @param eventNames - a list of event names to enabled.
+     * @param isKernel -  a flag for indicating kernel or UST.
+     * @param monitor - a progress monitor
+     * @throws ExecutionException
+     */
+    public void disableEvent(String sessionName, String channelName, List<String> eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException;
+
 }
This page took 0.024741 seconds and 5 git commands to generate.