// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite;
-
/**
* A tree viewer for displaying and selection of available contexts.
*/
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
- fDialogComposite.setLayout(layout);
- fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogComposite.setLayout(layout);
+ dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
// Contexts list
- Group contextGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+ Group contextGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
contextGroup.setText(Messages.TraceControl_AddContextAvailableContextsLabel);
layout = new GridLayout(1, true);
contextGroup.setLayout(layout);
getShell().setMinimumSize(new Point(500, 450));
- return fDialogComposite;
+ return dialogComposite;
}
@Override
/**
* @return The name of this component
*/
- public String getName();
+ String getName();
/**
* @return The parent component
*/
- public Object getParent();
+ Object getParent();
/**
* @return The array of children of this component
*/
- public Object[] getChildren();
+ Object[] getChildren();
/**
* @return If this component has children or not
*/
- public boolean hasChildren();
+ boolean hasChildren();
}
}
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite = null;
/**
* The text widget for the channel name
*/
* The read timer interval of the channel.
*/
private Text fReadTimerText = null;
- /**
- * Group composite for domain selection.
- */
- private Group fDomainGroup = null;
/**
* Radio button for selecting kernel domain.
*/
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(3, true);
- fDialogComposite.setLayout(layout);
+ dialogComposite.setLayout(layout);
- Label channelNameLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label channelNameLabel = new Label(dialogComposite, SWT.RIGHT);
channelNameLabel.setText(Messages.TraceControl_EnableChannelNameLabel);
- fChannelNameText = new Text(fDialogComposite, SWT.NONE);
+ fChannelNameText = new Text(dialogComposite, SWT.NONE);
fChannelNameText.setToolTipText(Messages.TraceControl_EnableChannelNameTooltip);
- Label subBufferSizeLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label subBufferSizeLabel = new Label(dialogComposite, SWT.RIGHT);
subBufferSizeLabel.setText(Messages.TraceControl_SubBufferSizePropertyName);
- fSubBufferSizeText = new Text(fDialogComposite, SWT.NONE);
+ fSubBufferSizeText = new Text(dialogComposite, SWT.NONE);
fSubBufferSizeText.setToolTipText(Messages.TraceControl_EnableChannelSubBufferSizeTooltip);
fSubBufferSizeText.addVerifyListener(fVerifyListener);
- Label numSubBufferLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label numSubBufferLabel = new Label(dialogComposite, SWT.RIGHT);
numSubBufferLabel.setText(Messages.TraceControl_NbSubBuffersPropertyName);
- fNumberOfSubBuffersText = new Text(fDialogComposite, SWT.NONE);
+ fNumberOfSubBuffersText = new Text(dialogComposite, SWT.NONE);
fNumberOfSubBuffersText.setToolTipText(Messages.TraceControl_EnableChannelNbSubBuffersTooltip);
fNumberOfSubBuffersText.addVerifyListener(fVerifyListener);
- Label switchTimerLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label switchTimerLabel = new Label(dialogComposite, SWT.RIGHT);
switchTimerLabel.setText(Messages.TraceControl_SwitchTimerPropertyName);
- fSwitchTimerText = new Text(fDialogComposite, SWT.NONE);
+ fSwitchTimerText = new Text(dialogComposite, SWT.NONE);
fSwitchTimerText.setToolTipText(Messages.TraceControl_EnableChannelSwitchTimerTooltip);
fSwitchTimerText.addVerifyListener(fVerifyListener);
- Label readTimerLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label readTimerLabel = new Label(dialogComposite, SWT.RIGHT);
readTimerLabel.setText(Messages.TraceControl_ReadTimerPropertyName);
- fReadTimerText = new Text(fDialogComposite, SWT.NONE);
+ fReadTimerText = new Text(dialogComposite, SWT.NONE);
fReadTimerText.setToolTipText(Messages.TraceControl_EnableChannelReadTimerTooltip);
fReadTimerText.addVerifyListener(fVerifyListener);
- Group discardModeGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+ Group discardModeGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
discardModeGroup.setText(Messages.TraceControl_EnableChannelDiscardModeGroupName);
layout = new GridLayout(2, true);
discardModeGroup.setLayout(layout);
fOverwriteModeButton.setToolTipText(Messages.TraceControl_EnableChannelOverwriteModeTooltip);
fOverwriteModeButton.setSelection(false);
- fDomainGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
- fDomainGroup.setText(Messages.TraceControl_DomainDisplayName);
+ Group domainGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+ domainGroup.setText(Messages.TraceControl_DomainDisplayName);
layout = new GridLayout(2, true);
- fDomainGroup.setLayout(layout);
+ domainGroup.setLayout(layout);
- fKernelButton = new Button(fDomainGroup, SWT.RADIO);
+ fKernelButton = new Button(domainGroup, SWT.RADIO);
fKernelButton.setText(Messages.TraceControl_KernelDomainDisplayName);
fKernelButton.setSelection(fIsKernel);
- fUstButton = new Button(fDomainGroup, SWT.RADIO);
+ fUstButton = new Button(domainGroup, SWT.RADIO);
fUstButton.setText(Messages.TraceControl_UstDisplayName);
fUstButton.setSelection(!fIsKernel);
fOverwriteModeButton.setLayoutData(data);
data = new GridData(GridData.FILL, GridData.CENTER, false, false, 3, 1);
- fDomainGroup.setLayoutData(data);
+ domainGroup.setLayoutData(data);
data = new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true);
fKernelButton.setLayoutData(data);
setDefaults();
- return fDialogComposite;
+ return dialogComposite;
}
@Override
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite = null;
- /**
- * The Group for the session combo box.
- */
- private Group fSessionsGroup = null;
- /**
- * The Group for the channel combo box.
- */
- private Group fChannelsGroup = null;
/**
* The session combo box.
*/
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
- fDialogComposite.setLayout(layout);
- fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogComposite.setLayout(layout);
+ dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
- fSessionsGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
- fSessionsGroup.setText(Messages.TraceControl_EnableEventsSessionGroupName);
+ Group sessionsGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+ sessionsGroup.setText(Messages.TraceControl_EnableEventsSessionGroupName);
layout = new GridLayout(1, true);
- fSessionsGroup.setLayout(layout);
+ sessionsGroup.setLayout(layout);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
- fSessionsGroup.setLayoutData(data);
+ sessionsGroup.setLayoutData(data);
- fSessionsCombo = new CCombo(fSessionsGroup, SWT.READ_ONLY);
+ fSessionsCombo = new CCombo(sessionsGroup, SWT.READ_ONLY);
fSessionsCombo.setToolTipText(Messages.TraceControl_EnableEventsSessionsTooltip);
fSessionsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fSessionsCombo.setItems(items);
fSessionsCombo.setEnabled(fSessions.length > 0);
- fChannelsGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
- fChannelsGroup.setText(Messages.TraceControl_EnableEventsChannelGroupName);
+ Group channelsGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+ channelsGroup.setText(Messages.TraceControl_EnableEventsChannelGroupName);
layout = new GridLayout(1, true);
- fChannelsGroup.setLayout(layout);
+ channelsGroup.setLayout(layout);
data = new GridData(GridData.FILL_HORIZONTAL);
- fChannelsGroup.setLayoutData(data);
+ channelsGroup.setLayoutData(data);
- fChannelsCombo = new CCombo(fChannelsGroup, SWT.READ_ONLY);
+ fChannelsCombo = new CCombo(channelsGroup, SWT.READ_ONLY);
fChannelsCombo.setToolTipText(Messages.TraceControl_EnableEventsChannelsTooltip);
fChannelsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fChannelsCombo.setEnabled(false);
// take first session to test whether events filtering is supported or not
if (fSessions[0].isEventFilteringSupported() && !fIsKernel) {
- Group filterMainGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+ Group filterMainGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
filterMainGroup.setText(Messages.TraceControl_EnableEventsFilterGroupName);
layout = new GridLayout(2, false);
filterMainGroup.setLayout(layout);
getShell().setMinimumSize(new Point(300, 200));
- return fDialogComposite;
+ return dialogComposite;
}
@Override
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite = null;
/**
* The radio button for selecting the overwrite action
*/
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
- fDialogComposite.setLayout(layout);
- fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogComposite.setLayout(layout);
+ dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
- Label sessionNameLabel = new Label(fDialogComposite, SWT.RIGHT);
+ Label sessionNameLabel = new Label(dialogComposite, SWT.RIGHT);
sessionNameLabel.setText(Messages.TraceControl_ImportDialogTraceAlreadyExistError + ": " + fTraceName); //$NON-NLS-1$
- fOverwriteButton = new Button(fDialogComposite, SWT.RADIO);
+ fOverwriteButton = new Button(dialogComposite, SWT.RADIO);
fOverwriteButton.setText(Messages.TraceControl_ImportDialogConfirmationOverwriteLabel);
fOverwriteButton.addSelectionListener(new SelectionAdapter() {
}
});
- fRenameButton = new Button(fDialogComposite, SWT.RADIO);
+ fRenameButton = new Button(dialogComposite, SWT.RADIO);
fRenameButton.setText(Messages.TraceControl_ImportDialogConfirmationRenameLabel);
fRenameButton.addSelectionListener(new SelectionAdapter() {
}
});
- fNewTraceNameText = new Text(fDialogComposite, SWT.NONE);
+ fNewTraceNameText = new Text(dialogComposite, SWT.NONE);
fNewTraceNameText.setToolTipText(Messages.TraceControl_ImportDialogConfirmationNewNameLabel);
fNewTraceNameText.setText(fTraceName);
getShell().setMinimumSize(new Point(300, 150));
- return fDialogComposite;
+ return dialogComposite;
}
@Override
* The overwrite button
*/
private Button fOverwriteButton;
- /**
- * The button to open import wizard for import locally.
- */
- private Button fImportLocallyButton;
/**
* List of available LTTng 2.0 projects
*/
@Override
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.CANCEL_ID, "&Cancel", true); //$NON-NLS-1$
- fImportLocallyButton = createButton(parent, IDialogConstants.OK_ID, "&Ok", true); //$NON-NLS-1$
+ Button importLocallyButton = createButton(parent, IDialogConstants.OK_ID, "&Ok", true); //$NON-NLS-1$
if (fSession.isStreamedTrace()) {
- fImportLocallyButton.setText("&Next..."); //$NON-NLS-1$
+ importLocallyButton.setText("&Next..."); //$NON-NLS-1$
}
}
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
- /**
- * The dialog composite.
- */
- private Composite fDialogComposite = null;
- /**
- * The Group for the host combo box.
- */
- private Group fComboGroup = null;
- /**
- * The Group for the text input.
- */
- private Group fTextGroup = null;
/**
* The host combo box.
*/
protected Control createDialogArea(Composite parent) {
// Main dialog panel
- fDialogComposite = new Composite(parent, SWT.NONE);
+ Composite dialogComposite = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, true);
- fDialogComposite.setLayout(layout);
- fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogComposite.setLayout(layout);
+ dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
// Existing connections group
- fComboGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
- fComboGroup.setText(Messages.TraceControl_NewNodeExistingConnectionGroupName);
+ Group comboGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+ comboGroup.setText(Messages.TraceControl_NewNodeExistingConnectionGroupName);
layout = new GridLayout(2, true);
- fComboGroup.setLayout(layout);
+ comboGroup.setLayout(layout);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
- fComboGroup.setLayoutData(data);
+ comboGroup.setLayoutData(data);
- fExistingHostsCombo = new CCombo(fComboGroup, SWT.READ_ONLY);
+ fExistingHostsCombo = new CCombo(comboGroup, SWT.READ_ONLY);
fExistingHostsCombo.setToolTipText(Messages.TraceControl_NewNodeComboToolTip);
fExistingHostsCombo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
fExistingHostsCombo.setEnabled(fExistingHosts.length > 0);
// Node information grop
- fTextGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+ Group textGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
layout = new GridLayout(3, true);
- fTextGroup.setLayout(layout);
+ textGroup.setLayout(layout);
data = new GridData(GridData.FILL_HORIZONTAL);
- fTextGroup.setLayoutData(data);
+ textGroup.setLayoutData(data);
- fButton = new Button(fTextGroup, SWT.CHECK);
+ fButton = new Button(textGroup, SWT.CHECK);
fButton.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
fButton.setText(Messages.TraceControl_NewNodeEditButtonName);
fButton.setEnabled(fExistingHosts.length > 0);
- Label connectionNameLabel = new Label(fTextGroup, SWT.RIGHT);
+ Label connectionNameLabel = new Label(textGroup, SWT.RIGHT);
connectionNameLabel.setText(Messages.TraceControl_NewNodeConnectionNameLabel);
- fConnectionNameText = new Text(fTextGroup, SWT.NONE);
+ fConnectionNameText = new Text(textGroup, SWT.NONE);
fConnectionNameText.setToolTipText(Messages.TraceControl_NewNodeConnectionNameTooltip);
fConnectionNameText.setEnabled(fExistingHosts.length == 0);
- Label hostNameLabel = new Label(fTextGroup, SWT.RIGHT);
+ Label hostNameLabel = new Label(textGroup, SWT.RIGHT);
hostNameLabel.setText(Messages.TraceControl_NewNodeHostNameLabel);
- fHostNameText = new Text(fTextGroup, SWT.NONE);
+ fHostNameText = new Text(textGroup, SWT.NONE);
fHostNameText.setToolTipText(Messages.TraceControl_NewNodeHostNameTooltip);
fHostNameText.setEnabled(fExistingHosts.length == 0);
- Label portLabel = new Label(fTextGroup, SWT.RIGHT);
+ Label portLabel = new Label(textGroup, SWT.RIGHT);
portLabel.setText(Messages.TraceControl_NewNodePortLabel);
- fPortText = new Text(fTextGroup, SWT.NONE);
+ fPortText = new Text(textGroup, SWT.NONE);
fPortText.setToolTipText(Messages.TraceControl_NewNodePortTooltip);
fPortText.setEnabled(fExistingHosts.length == 0);
fPortText.addVerifyListener(new VerifyListener() {
fHostNameText.setText(""); //$NON-NLS-1$
- return fDialogComposite;
+ return dialogComposite;
}
@Override
/**
* @return TraceControlDialogFactory instance
*/
- public synchronized static TraceControlDialogFactory getInstance() {
+ public static synchronized TraceControlDialogFactory getInstance() {
if (fInstance == null) {
fInstance = new TraceControlDialogFactory();
}
*
* @author Bernd Hufmann
*/
-abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
+public abstract class ChangeChannelStateHandler extends BaseControlViewHandler {
// ------------------------------------------------------------------------
// Attributes
/**
* @return the new state to set
*/
- abstract protected TraceEnablement getNewState();
+ protected abstract TraceEnablement getNewState();
// ------------------------------------------------------------------------
// Operations
* @param monitor - a progress monitor
* @throws ExecutionException If the command fails
*/
- abstract protected void changeState(TraceDomainComponent domain, List<String> channelNames, IProgressMonitor monitor) throws ExecutionException;
+ protected abstract void changeState(TraceDomainComponent domain, List<String> channelNames, IProgressMonitor monitor) throws ExecutionException;
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
/**
* Class containing parameter for the command execution.
*/
- static protected class Parameter {
+ protected static class Parameter {
/**
* Kernel domain component reference.
*/
- final protected TraceDomainComponent fKernelDomain;
+ protected final TraceDomainComponent fKernelDomain;
/**
* UST domain component reference.
*/
- final protected TraceDomainComponent fUstDomain;
+ protected final TraceDomainComponent fUstDomain;
/**
* The list of kernel channel components the command is to be executed on.
*/
- final protected List<TraceChannelComponent> fKernelChannels;
+ protected final List<TraceChannelComponent> fKernelChannels;
/**
* The list of UST channel components the command is to be executed on.
*/
- final protected List<TraceChannelComponent> fUstChannels;
+ protected final List<TraceChannelComponent> fUstChannels;
/**
* Constructor
*
* @author Bernd Hufmann
*/
-abstract public class ChangeSessionStateHandler extends BaseControlViewHandler {
+public abstract class ChangeSessionStateHandler extends BaseControlViewHandler {
// ------------------------------------------------------------------------
// Attributes
/**
* @return new required state.
*/
- abstract TraceSessionState getNewState();
+ public abstract TraceSessionState getNewState();
// ------------------------------------------------------------------------
// Operations
*
* @author Bernd Hufmann
*/
-public class ControlCommandLogger {
+final public class ControlCommandLogger {
// ------------------------------------------------------------------------
// Attributes
// Constructor
// ------------------------------------------------------------------------
private ControlCommandLogger() {
-
}
// ------------------------------------------------------------------------
/**
* Invalid port number for IP based connections.
*/
- public final static int INVALID_PORT_NUMBER = -1;
+ static final int INVALID_PORT_NUMBER = -1;
// ------------------------------------------------------------------------
// Operations
/**
* @return the version string.
*/
- public String getVersion();
+ String getVersion();
/**
* Checks if given version is supported by this ILTTngControlService implementation.
* @param version The version to check
* @return <code>true</code> if version is supported else <code>false</code>
*/
- public boolean isVersionSupported(String version);
+ boolean isVersionSupported(String version);
/**
* Retrieves the existing sessions names from the node.
* @throws ExecutionException
* If the command fails
*/
- public String[] getSessionNames(IProgressMonitor monitor)
+ String[] getSessionNames(IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public ISessionInfo getSession(String sessionName, IProgressMonitor monitor)
+ ISessionInfo getSession(String sessionName, IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor)
+ List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor)
+ List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public ISessionInfo createSession(String sessionName, String sessionPath, IProgressMonitor monitor) throws ExecutionException;
+ ISessionInfo createSession(String sessionName, String sessionPath, IProgressMonitor monitor) throws ExecutionException;
/**
* Creates a session with given session name and location.
* @throws ExecutionException
* If the command fails
*/
- public ISessionInfo createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl, IProgressMonitor monitor) throws ExecutionException;
+ ISessionInfo createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl, IProgressMonitor monitor) throws ExecutionException;
/**
* Destroys a session with given session name.
* @throws ExecutionException
* If the command fails
*/
- public void destroySession(String sessionName, IProgressMonitor monitor)
+ void destroySession(String sessionName, IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public void startSession(String sessionName, IProgressMonitor monitor)
+ void startSession(String sessionName, IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public void stopSession(String sessionName, IProgressMonitor monitor)
+ void stopSession(String sessionName, IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public void enableChannels(String sessionName, List<String> channelNames,
+ void enableChannels(String sessionName, List<String> channelNames,
boolean isKernel, IChannelInfo info, IProgressMonitor monitor)
throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void disableChannels(String sessionName, List<String> channelNames,
+ void disableChannels(String sessionName, List<String> channelNames,
boolean isKernel, IProgressMonitor monitor)
throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void enableEvents(String sessionName, String channelName,
+ void enableEvents(String sessionName, String channelName,
List<String> eventNames, boolean isKernel, String filterExpression,
IProgressMonitor monitor)
throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void enableSyscalls(String sessionName, String channelName,
+ void enableSyscalls(String sessionName, String channelName,
IProgressMonitor monitor) throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public void enableProbe(String sessionName, String channelName,
+ void enableProbe(String sessionName, String channelName,
String eventName, boolean isFunction, String probe,
IProgressMonitor monitor) throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void enableLogLevel(String sessionName, String channelName,
+ void enableLogLevel(String sessionName, String channelName,
String eventName, LogLevelType logLevelType, TraceLogLevel level,
String filterExpression,
IProgressMonitor monitor) throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void disableEvent(String sessionName, String channelName,
+ void disableEvent(String sessionName, String channelName,
List<String> eventNames, boolean isKernel, IProgressMonitor monitor)
throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public List<String> getContextList(IProgressMonitor monitor)
+ List<String> getContextList(IProgressMonitor monitor)
throws ExecutionException;
/**
* @throws ExecutionException
* If the command fails
*/
- public void addContexts(String sessionName, String channelName,
+ void addContexts(String sessionName, String channelName,
String eventName, boolean isKernel, List<String> contexts,
IProgressMonitor monitor) throws ExecutionException;
* @throws ExecutionException
* If the command fails
*/
- public void calibrate(boolean isKernel, IProgressMonitor monitor)
+ void calibrate(boolean isKernel, IProgressMonitor monitor)
throws ExecutionException;
}
ret.append(result.getResult());
ret.append("\n"); //$NON-NLS-1$
for (int i = 0; i < output.length; i++) {
- ret.append(output[i] + "\n"); //$NON-NLS-1$
+ ret.append(output[i]).append("\n"); //$NON-NLS-1$
}
return ret.toString();
}
*
* @author Bernd Hufmann
*/
-interface LTTngControlServiceConstants {
+public interface LTTngControlServiceConstants {
// ------------------------------------------------------------------------
// Version constants
/**
* Pattern to match the LTTng toolchain version 2.x.y.
*/
- public static final Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
+ static final Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
// ------------------------------------------------------------------------
// Command constants
/**
* The lttng tools command.
*/
- public static final String CONTROL_COMMAND = "lttng"; //$NON-NLS-1$
+ static final String CONTROL_COMMAND = "lttng"; //$NON-NLS-1$
/**
* Command: lttng version.
*/
- public static final String COMMAND_VERSION = " version "; //$NON-NLS-1$
+ static final String COMMAND_VERSION = " version "; //$NON-NLS-1$
/**
* Command: lttng list.
*/
- public static final String COMMAND_LIST = " list "; //$NON-NLS-1$
+ static final String COMMAND_LIST = " list "; //$NON-NLS-1$
/**
* Command to list kernel tracer information.
*/
- public static final String COMMAND_LIST_KERNEL = COMMAND_LIST + "-k"; //$NON-NLS-1$
+ static final String COMMAND_LIST_KERNEL = COMMAND_LIST + "-k"; //$NON-NLS-1$
/**
* Command to list user space trace information.
*/
- public static final String COMMAND_LIST_UST = COMMAND_LIST + "-u"; //$NON-NLS-1$
+ static final String COMMAND_LIST_UST = COMMAND_LIST + "-u"; //$NON-NLS-1$
/**
* Command to create a session.
*/
- public static final String COMMAND_CREATE_SESSION = " create "; //$NON-NLS-1$
+ static final String COMMAND_CREATE_SESSION = " create "; //$NON-NLS-1$
/**
* Command to destroy a session.
*/
- public static final String COMMAND_DESTROY_SESSION = " destroy "; //$NON-NLS-1$
+ static final String COMMAND_DESTROY_SESSION = " destroy "; //$NON-NLS-1$
/**
* Command to destroy a session.
*/
- public static final String COMMAND_START_SESSION = " start "; //$NON-NLS-1$
+ static final String COMMAND_START_SESSION = " start "; //$NON-NLS-1$
/**
* Command to destroy a session.
*/
- public static final String COMMAND_STOP_SESSION = " stop "; //$NON-NLS-1$
+ static final String COMMAND_STOP_SESSION = " stop "; //$NON-NLS-1$
/**
* Command to enable a channel.
*/
- public static final String COMMAND_ENABLE_CHANNEL = " enable-channel "; //$NON-NLS-1$
+ static final String COMMAND_ENABLE_CHANNEL = " enable-channel "; //$NON-NLS-1$
/**
* Command to disable a channel.
*/
- public static final String COMMAND_DISABLE_CHANNEL = " disable-channel "; //$NON-NLS-1$
+ static final String COMMAND_DISABLE_CHANNEL = " disable-channel "; //$NON-NLS-1$
/**
* Command to enable a event.
*/
- public static final String COMMAND_ENABLE_EVENT = " enable-event "; //$NON-NLS-1$
+ static final String COMMAND_ENABLE_EVENT = " enable-event "; //$NON-NLS-1$
/**
* Command to disable a event.
*/
- public static final String COMMAND_DISABLE_EVENT = " disable-event "; //$NON-NLS-1$
+ static final String COMMAND_DISABLE_EVENT = " disable-event "; //$NON-NLS-1$
/**
* Command to add a context to channels and/or events
*/
- public static final String COMMAND_ADD_CONTEXT = " add-context "; //$NON-NLS-1$
+ static final String COMMAND_ADD_CONTEXT = " add-context "; //$NON-NLS-1$
/**
* Command to execute calibrate command to quantify LTTng overhead
*/
- public static final String COMMAND_CALIBRATE = " calibrate "; //$NON-NLS-1$
+ static final String COMMAND_CALIBRATE = " calibrate "; //$NON-NLS-1$
// ------------------------------------------------------------------------
// Command line options constants
/**
* Command line option to add tracing group of user.
*/
- public static final String OPTION_TRACING_GROUP = " -g "; //$NON-NLS-1$
+ static final String OPTION_TRACING_GROUP = " -g "; //$NON-NLS-1$
/**
* Command line option for verbose output.
*/
- public static final String OPTION_VERBOSE = " -v "; //$NON-NLS-1$
+ static final String OPTION_VERBOSE = " -v "; //$NON-NLS-1$
/**
* Command line option for verbose output.
*/
- public static final String OPTION_VERY_VERBOSE = " -vv "; //$NON-NLS-1$
+ static final String OPTION_VERY_VERBOSE = " -vv "; //$NON-NLS-1$
/**
* Command line option for verbose output.
*/
- public static final String OPTION_VERY_VERY_VERBOSE = " -vvv "; //$NON-NLS-1$
+ static final String OPTION_VERY_VERY_VERBOSE = " -vvv "; //$NON-NLS-1$
/**
* Command line option for output path.
*/
- public static final String OPTION_OUTPUT_PATH = " -o "; //$NON-NLS-1$
+ static final String OPTION_OUTPUT_PATH = " -o "; //$NON-NLS-1$
/**
* Command line option for kernel tracer.
*/
- public static final String OPTION_KERNEL = " -k "; //$NON-NLS-1$
+ static final String OPTION_KERNEL = " -k "; //$NON-NLS-1$
/**
* Command line option for UST tracer.
*/
- public static final String OPTION_UST = " -u "; //$NON-NLS-1$
+ static final String OPTION_UST = " -u "; //$NON-NLS-1$
/**
* Command line option for specifying a session.
*/
- public static final String OPTION_SESSION = " -s "; //$NON-NLS-1$
+ static final String OPTION_SESSION = " -s "; //$NON-NLS-1$
/**
* Command line option for specifying a channel.
*/
- public static final String OPTION_CHANNEL = " -c "; //$NON-NLS-1$
+ static final String OPTION_CHANNEL = " -c "; //$NON-NLS-1$
/**
* Command line option for specifying a event.
*/
- public static final String OPTION_EVENT = " -e "; //$NON-NLS-1$
+ static final String OPTION_EVENT = " -e "; //$NON-NLS-1$
/**
* Command line option for specifying all events.
*/
- public static final String OPTION_ALL = " -a "; //$NON-NLS-1$
+ static final String OPTION_ALL = " -a "; //$NON-NLS-1$
/**
* Command line option for specifying a context.
*/
- public static final String OPTION_CONTEXT_TYPE = " -t "; //$NON-NLS-1$
+ static final String OPTION_CONTEXT_TYPE = " -t "; //$NON-NLS-1$
/**
* Command line option for specifying tracepoint events.
*/
- public static final String OPTION_TRACEPOINT = " --tracepoint "; //$NON-NLS-1$
+ static final String OPTION_TRACEPOINT = " --tracepoint "; //$NON-NLS-1$
/**
* Command line option for specifying syscall events.
*/
- public static final String OPTION_SYSCALL = " --syscall "; //$NON-NLS-1$
+ static final String OPTION_SYSCALL = " --syscall "; //$NON-NLS-1$
/**
* Command line option for specifying a dynamic probe.
*/
- public static final String OPTION_PROBE = " --probe "; //$NON-NLS-1$
+ static final String OPTION_PROBE = " --probe "; //$NON-NLS-1$
/**
* Command line option for specifying a dynamic function entry/return probe.
*/
- public static final String OPTION_FUNCTION_PROBE = " --function "; //$NON-NLS-1$
+ static final String OPTION_FUNCTION_PROBE = " --function "; //$NON-NLS-1$
/**
* Command line option for specifying a log level range.
*/
- public static final String OPTION_LOGLEVEL = " --loglevel "; //$NON-NLS-1$
+ static final String OPTION_LOGLEVEL = " --loglevel "; //$NON-NLS-1$
/**
* Command line option for specifying a specific log level.
*/
- public static final String OPTION_LOGLEVEL_ONLY = " --loglevel-only "; //$NON-NLS-1$
+ static final String OPTION_LOGLEVEL_ONLY = " --loglevel-only "; //$NON-NLS-1$
/**
* Optional command line option for configuring a channel's overwrite mode.
*/
- public static final String OPTION_OVERWRITE = " --overwrite "; //$NON-NLS-1$
+ static final String OPTION_OVERWRITE = " --overwrite "; //$NON-NLS-1$
/**
* Optional command line option for configuring a channel's number of sub buffers.
*/
- public static final String OPTION_NUM_SUB_BUFFERS = " --num-subbuf "; //$NON-NLS-1$
+ static final String OPTION_NUM_SUB_BUFFERS = " --num-subbuf "; //$NON-NLS-1$
/**
* Optional command line option for configuring a channel's sub buffer size.
*/
- public static final String OPTION_SUB_BUFFER_SIZE = " --subbuf-size "; //$NON-NLS-1$
+ static final String OPTION_SUB_BUFFER_SIZE = " --subbuf-size "; //$NON-NLS-1$
/**
* Optional command line option for configuring a channel's switch timer interval.
*/
- public static final String OPTION_SWITCH_TIMER = " --switch-timer "; //$NON-NLS-1$
+ static final String OPTION_SWITCH_TIMER = " --switch-timer "; //$NON-NLS-1$
/**
* Optional command line option for configuring a channel's read timer interval.
*/
- public static final String OPTION_READ_TIMER = " --read-timer "; //$NON-NLS-1$
+ static final String OPTION_READ_TIMER = " --read-timer "; //$NON-NLS-1$
/**
* Command line option for printing the help of a specif command
*/
- public static final String OPTION_HELP = " -h "; //$NON-NLS-1$
+ static final String OPTION_HELP = " -h "; //$NON-NLS-1$
/**
* Command line option for listing the fields of UST tracepoints
*/
- public static final String OPTION_FIELDS = " -f "; //$NON-NLS-1$
+ static final String OPTION_FIELDS = " -f "; //$NON-NLS-1$
/**
* Command line option for configuring event's filter
*/
- public static final String OPTION_FILTER = " --filter "; //$NON-NLS-1$
+ static final String OPTION_FILTER = " --filter "; //$NON-NLS-1$
/**
* Command line option for configuring the streaming network URL (common for control and data channel).
*/
- public static final String OPTION_NETWORK_URL = " -U "; //$NON-NLS-1$
+ static final String OPTION_NETWORK_URL = " -U "; //$NON-NLS-1$
/**
* Command line option for configuring the streaming control URL.
*/
- public static final String OPTION_CONTROL_URL = " -C "; //$NON-NLS-1$
+ static final String OPTION_CONTROL_URL = " -C "; //$NON-NLS-1$
/**
* Command line option for configuring the streaming data URL.
*/
- public static final String OPTION_DATA_URL = " -D "; //$NON-NLS-1$
+ static final String OPTION_DATA_URL = " -D "; //$NON-NLS-1$
// ------------------------------------------------------------------------
// Parsing constants
/**
* Pattern to match the version.
*/
- public static final Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
+ static final Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
/**
* Pattern to match for error output
*/
- public static final Pattern ERROR_PATTERN = Pattern.compile("\\s*Error\\:.*"); //$NON-NLS-1$
+ static final Pattern ERROR_PATTERN = Pattern.compile("\\s*Error\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for session information (lttng list)
*/
- public static final Pattern SESSION_PATTERN = Pattern.compile("\\s+(\\d+)\\)\\s+(.*)\\s+\\((.*)\\)\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
+ static final Pattern SESSION_PATTERN = Pattern.compile("\\s+(\\d+)\\)\\s+(.*)\\s+\\((.*)\\)\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
/**
* Pattern to match for session information (lttng list <session>)
*/
- public static final Pattern TRACE_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
+ static final Pattern TRACE_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
/**
* Pattern to match for session path information (lttng list <session>)
*/
- public static final Pattern TRACE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(.*)"); //$NON-NLS-1$
+ static final Pattern TRACE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(.*)"); //$NON-NLS-1$
/**
* Pattern to match session path for network tracing (lttng list <session>)
* Note: file for protocol is not considered as network trace since local consumer will be used.
*/
- public static final Pattern TRACE_NETWORK_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(net|net6|tcp|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
+ static final Pattern TRACE_NETWORK_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(net|net6|tcp|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
/**
* Sub-pattern to pattern TRACE_NETWORK_PATH_PATTERN to match file protocol
*/
- public static final Pattern TRACE_FILE_PROTOCOL_PATTERN = Pattern.compile("(file)\\:\\/\\/(.*)"); //$NON-NLS-1$
+ static final Pattern TRACE_FILE_PROTOCOL_PATTERN = Pattern.compile("(file)\\:\\/\\/(.*)"); //$NON-NLS-1$
/**
* Pattern to match for kernel domain information (lttng list <session>)
*/
- public static final Pattern DOMAIN_KERNEL_PATTERN = Pattern.compile("=== Domain: Kernel ==="); //$NON-NLS-1$
+ static final Pattern DOMAIN_KERNEL_PATTERN = Pattern.compile("=== Domain: Kernel ==="); //$NON-NLS-1$
/**
* Pattern to match for ust domain information (lttng list <session>)
*/
- public static final Pattern DOMAIN_UST_GLOBAL_PATTERN = Pattern.compile("=== Domain: UST global ==="); //$NON-NLS-1$
+ static final Pattern DOMAIN_UST_GLOBAL_PATTERN = Pattern.compile("=== Domain: UST global ==="); //$NON-NLS-1$
/**
* Pattern to match for matching warning about no kernel channel
*/
- public static final Pattern DOMAIN_NO_KERNEL_CHANNEL_PATTERN = Pattern.compile("\\s*Warning\\:\\s+No kernel\\s+channel.*"); //$NON-NLS-1$
+ static final Pattern DOMAIN_NO_KERNEL_CHANNEL_PATTERN = Pattern.compile("\\s*Warning\\:\\s+No kernel\\s+channel.*"); //$NON-NLS-1$
/**
* Pattern to match for matching warning about no UST channel
*/
- public static final Pattern DOMAIN_NO_UST_CHANNEL_PATTERN = Pattern.compile("\\s*Error\\:\\s+UST\\s+channel\\s+not\\s+found.*"); //$NON-NLS-1$
+ static final Pattern DOMAIN_NO_UST_CHANNEL_PATTERN = Pattern.compile("\\s*Error\\:\\s+UST\\s+channel\\s+not\\s+found.*"); //$NON-NLS-1$
/**
* Pattern to match for channels section (lttng list <session>)
*/
- public static final Pattern CHANNELS_SECTION_PATTERN = Pattern.compile("\\s*Channels\\:"); //$NON-NLS-1$
+ static final Pattern CHANNELS_SECTION_PATTERN = Pattern.compile("\\s*Channels\\:"); //$NON-NLS-1$
/**
* Pattern to match for channel information (lttng list <session>)
*/
- public static final Pattern CHANNEL_PATTERN = Pattern.compile("\\s*-\\s+(.*)\\:\\s+\\[(enabled|disabled)\\]"); //$NON-NLS-1$
+ static final Pattern CHANNEL_PATTERN = Pattern.compile("\\s*-\\s+(.*)\\:\\s+\\[(enabled|disabled)\\]"); //$NON-NLS-1$
/**
* Pattern to match for events section information (lttng list <session>)
*/
- public static final Pattern EVENT_SECTION_PATTERN = Pattern.compile("\\s*Events\\:"); //$NON-NLS-1$
+ static final Pattern EVENT_SECTION_PATTERN = Pattern.compile("\\s*Events\\:"); //$NON-NLS-1$
/**
* Pattern to match for event information (lttng list <session>)
*/
- public static final Pattern EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
+ static final Pattern EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
/**
* Pattern to match a wildcarded event information (lttng list <session>)
*/
- public static final Pattern WILDCARD_EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
+ static final Pattern WILDCARD_EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
/**
* Pattern to match a probe address information (lttng list <session>)
*/
- public static final Pattern PROBE_ADDRESS_PATTERN = Pattern.compile("\\s+(addr)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
+ static final Pattern PROBE_ADDRESS_PATTERN = Pattern.compile("\\s+(addr)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
/**
* Pattern to match a probe OFFSET information (lttng list <session>)
*/
- public static final Pattern PROBE_OFFSET_PATTERN = Pattern.compile("\\s+(offset)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
+ static final Pattern PROBE_OFFSET_PATTERN = Pattern.compile("\\s+(offset)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
/**
* Pattern to match a probe SYMBOL information (lttng list <session>)
*/
- public static final Pattern PROBE_SYMBOL_PATTERN = Pattern.compile("\\s+(symbol)\\:\\s+(.+)"); //$NON-NLS-1$
+ static final Pattern PROBE_SYMBOL_PATTERN = Pattern.compile("\\s+(symbol)\\:\\s+(.+)"); //$NON-NLS-1$
/**
* Pattern to match for channel (overwite mode) information (lttng list <session>)
*/
- public static final Pattern OVERWRITE_MODE_ATTRIBUTE = Pattern.compile("\\s+overwrite\\s+mode\\:.*"); //$NON-NLS-1$
+ static final Pattern OVERWRITE_MODE_ATTRIBUTE = Pattern.compile("\\s+overwrite\\s+mode\\:.*"); //$NON-NLS-1$
/**
* Pattern to match indicating false for overwrite mode
*/
- public static final String OVERWRITE_MODE_ATTRIBUTE_FALSE = "0"; //$NON-NLS-1$
+ static final String OVERWRITE_MODE_ATTRIBUTE_FALSE = "0"; //$NON-NLS-1$
/**
* Pattern to match for channel (sub-buffer size) information (lttng list <session>)
*/
- public static final Pattern SUBBUFFER_SIZE_ATTRIBUTE = Pattern.compile("\\s+subbufers\\s+size\\:.*"); //$NON-NLS-1$
+ static final Pattern SUBBUFFER_SIZE_ATTRIBUTE = Pattern.compile("\\s+subbufers\\s+size\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for channel (number of sub-buffers) information (lttng list <session>)
*/
- public static final Pattern NUM_SUBBUFFERS_ATTRIBUTE = Pattern.compile("\\s+number\\s+of\\s+subbufers\\:.*"); //$NON-NLS-1$
+ static final Pattern NUM_SUBBUFFERS_ATTRIBUTE = Pattern.compile("\\s+number\\s+of\\s+subbufers\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for channel (switch timer) information (lttng list <session>)
*/
- public static final Pattern SWITCH_TIMER_ATTRIBUTE = Pattern.compile("\\s+switch\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
+ static final Pattern SWITCH_TIMER_ATTRIBUTE = Pattern.compile("\\s+switch\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for channel (read timer) information (lttng list <session>)
*/
- public static final Pattern READ_TIMER_ATTRIBUTE = Pattern.compile("\\s+read\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
+ static final Pattern READ_TIMER_ATTRIBUTE = Pattern.compile("\\s+read\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for channel (output type) information (lttng list <session>)
*/
- public static final Pattern OUTPUT_ATTRIBUTE = Pattern.compile("\\s+output\\:.*"); //$NON-NLS-1$
+ static final Pattern OUTPUT_ATTRIBUTE = Pattern.compile("\\s+output\\:.*"); //$NON-NLS-1$
/**
* Pattern to match for provider information (lttng list -k/-u)
*/
- public static final Pattern PROVIDER_EVENT_PATTERN = Pattern.compile("\\s*(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)"); //$NON-NLS-1$
+ static final Pattern PROVIDER_EVENT_PATTERN = Pattern.compile("\\s*(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)"); //$NON-NLS-1$
/**
* Pattern to match event fields
*/
- public static final Pattern EVENT_FIELD_PATTERN = Pattern.compile("\\s*(field:)\\s+(.*)\\s+\\((.*)\\)"); //$NON-NLS-1$
+ static final Pattern EVENT_FIELD_PATTERN = Pattern.compile("\\s*(field:)\\s+(.*)\\s+\\((.*)\\)"); //$NON-NLS-1$
/**
* Pattern to match for UST provider information (lttng list -u)
*/
- public static final Pattern UST_PROVIDER_PATTERN = Pattern.compile("\\s*PID\\:\\s+(\\d+)\\s+-\\s+Name\\:\\s+(.*)"); //$NON-NLS-1$
+ static final Pattern UST_PROVIDER_PATTERN = Pattern.compile("\\s*PID\\:\\s+(\\d+)\\s+-\\s+Name\\:\\s+(.*)"); //$NON-NLS-1$
/**
* Pattern to match for session information (lttng create <session name>)
*/
- public static final Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
+ static final Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
/**
* Pattern to match for session path information (lttng create <session name>)
*/
- public static final Pattern CREATE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Traces\\s+will\\s+be\\s+written\\s+in\\s+(.*).*"); //$NON-NLS-1$
+ static final Pattern CREATE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Traces\\s+will\\s+be\\s+written\\s+in\\s+(.*).*"); //$NON-NLS-1$
/**
* Pattern to match for session command output for "session name not found".
*/
- public static final Pattern SESSION_NOT_FOUND_ERROR_PATTERN = Pattern.compile("\\s*Error:\\s+Session\\s+name\\s+not\\s+found"); //$NON-NLS-1$
+ static final Pattern SESSION_NOT_FOUND_ERROR_PATTERN = Pattern.compile("\\s*Error:\\s+Session\\s+name\\s+not\\s+found"); //$NON-NLS-1$
/**
* Pattern to match introduction line of context list.
*/
- public static final Pattern ADD_CONTEXT_HELP_CONTEXTS_INTRO = Pattern.compile("\\s*TYPE can\\s+be\\s+one\\s+of\\s+the\\s+strings\\s+below.*"); //$NON-NLS-1$
+ static final Pattern ADD_CONTEXT_HELP_CONTEXTS_INTRO = Pattern.compile("\\s*TYPE can\\s+be\\s+one\\s+of\\s+the\\s+strings\\s+below.*"); //$NON-NLS-1$
/**
* Pattern to match introduction line of context list.
*/
- public static final Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
+ static final Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
/**
* Pattern to match error line if no kernel tracer is available or installed.
*/
- public static final Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
+ static final Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
/**
* Pattern to match error line if no ust tracer is available or installed.
*/
- public static final Pattern LIST_UST_NO_UST_PROVIDER_PATTERN = Pattern.compile(".*Unable\\s*to\\s*list\\s*UST\\s*event.*"); //$NON-NLS-1$;
+ static final Pattern LIST_UST_NO_UST_PROVIDER_PATTERN = Pattern.compile(".*Unable\\s*to\\s*list\\s*UST\\s*event.*"); //$NON-NLS-1$;
}