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.LogLevelType;
}
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceControlComponent#getAdapter(java.lang.Class)
- */
@Override
public Object getAdapter(Class adapter) {
if (adapter == IPropertySource.class) {
// 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.
*
session.getConfigurationFromNode(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)
- * @throws ExecutionException
- * If the command fails
- */
- public void enableChannels(List<String> channelNames, IChannelInfo info) throws ExecutionException {
- enableChannels(channelNames, info, 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
isKernel(), info, monitor);
}
- /**
- * Disables channels with given names which are part of this domain.
- *
- * @param channelNames
- * - a list of channel names to enable on this domain
- * @throws ExecutionException
- * If the command fails
- */
- public void disableChannels(List<String> channelNames)
- throws ExecutionException {
- disableChannels(channelNames, new NullProgressMonitor());
- }
-
/**
* Disables channels with given names which are part of this domain.
*
isKernel(), null, 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(getSessionName(), 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)
*
isFunction, 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, filterExpression, monitor);
}
- /**
- * Add contexts to given channels and or events
- *
- * @param contexts
- * - a list of contexts to add
- * @throws ExecutionException
- * If the command fails
- */
- public void addContexts(List<String> contexts) throws ExecutionException {
- addContexts(contexts, new NullProgressMonitor());
- }
-
/**
* Add contexts to given channels and or events
*
isKernel(), contexts, monitor);
}
- /**
- * Executes calibrate command to quantify LTTng overhead.
- *
- * @throws ExecutionException
- * If the command fails
- */
- public void calibrate() throws ExecutionException {
- calibrate(new NullProgressMonitor());
- }
-
/**
* Executes calibrate command to quantify LTTng overhead.
*