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;
// 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.
*
}
}
- /**
- * Starts the session.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void startSession() throws ExecutionException {
- startSession(new NullProgressMonitor());
- }
-
/**
* Starts the session.
*
getControlService().startSession(getName(), monitor);
}
- /**
- * Starts the session.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void stopSession() throws ExecutionException {
- startSession(new NullProgressMonitor());
- }
-
/**
* Starts the session.
*
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
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.
*
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)
*
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)
*
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.
*
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.
*