myJob.schedule();
}
-// public ITraceControlComponent getSelection() {
-// ISelection selection = fTreeViewer.getSelection();
-//
-// }
-
// ------------------------------------------------------------------------
// Helper methods
// ------------------------------------------------------------------------
+ /**
+ * Creates the context sensitive menu.
+ */
private void createContextMenu() {
// First we create a menu Manager
final MenuManager menuManager = new MenuManager();
TraceControl_EnableChannelDialogTitle=Enable Channel
TraceControl_EnableChannelNameLabel=Channel Name
TraceControl_EnableChannelNameTooltip=The name of the channel to be enabled.
-TraceControl_EnableChannelSubBufferSizeTooltip=The sub-buffers size of the channel.
+TraceControl_EnableChannelSubBufferSizeTooltip=The sub-buffers size of the channel. Needs to be a power of 2 for kernel and ust tracers.
TraceControl_EnableChannelNbSubBuffersTooltip=The number of sub-buffers of the channel. Needs to be a power of 2 for kernel and ust tracers.
-TraceControl_EnableChannelSwitchTimerTooltip=The switch timer interval in usec.
-TraceControl_EnableChannelReadTimerTooltip=The switch timer interval in usec.
+TraceControl_EnableChannelSwitchTimerTooltip=The Switch subbuffer timer interval in usec (default: 0). Needs to be a power of 2 for kernel and ust tracers.
+TraceControl_EnableChannelReadTimerTooltip=The Read timer interval in usec.
TraceControl_EnableChannelOutputTypeTooltip=The output type of the channel.
TraceControl_EnableChannelDiscardModeGroupName=Discard Mode
TraceControl_EnableChannelDiscardModeLabel=Discard
*/
protected ICommandShell fCommandShell = null;
+ /**
+ * The version string.
+ */
protected String fVersion = "Unknown"; //$NON-NLS-1$
// ------------------------------------------------------------------------
return fVersion;
}
+ /**
+ * Sets the version of the LTTng 2.0 control service.
+ * @param version - a version to set
+ */
public void setVersion(String version) {
fVersion = version;
}
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
+ /**
+ * The singleton instance.
+ */
private static LTTngControlServiceFactory fInstance = null;
// ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------
+ /**
+ * Constructor
+ */
private LTTngControlServiceFactory() {
}
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
+ /**
+ * @return the LTTngControlServiceFactory singleton instance.
+ */
public static synchronized LTTngControlServiceFactory getInstance() {
if (fInstance == null) {
fInstance = new LTTngControlServiceFactory();
// ------------------------------------------------------------------------
// Factory method
// ------------------------------------------------------------------------
+ /**
+ * Gets the LTTng Control Service implementation based on the version of the
+ * remote LTTng Tools.
+ * @param shell - the shell implementation to pass to the service
+ * @return - LTTng Control Service implementation
+ * @throws ExecutionException
+ */
public ILttngControlService getLttngControlService(ICommandShell shell) throws ExecutionException {
// get the version
ICommandResult result = shell.executeCommand(LTTngControlServiceConstants.CONTROL_COMMAND + LTTngControlServiceConstants.COMMAND_VERSION, new NullProgressMonitor());