use of org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler in project linuxtools by eclipse.
the class StreamGobblerTest method testStreamGobbler.
@Test
public void testStreamGobbler() {
assertNotNull("StreamGobbler not null", sg);
sg = new StreamGobbler(null);
assertNotNull("StreamGobbler not null", sg);
sg = new StreamGobbler(new TestStream());
assertNotNull("StreamGobbler not null", sg);
}
use of org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler in project linuxtools by eclipse.
the class StreamGobblerTest method setUp.
@Before
public void setUp() {
sg = new StreamGobbler(new TestStream());
sg.start();
}
use of org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler in project linuxtools by eclipse.
the class ConsoleStreamDaemonTest method setUp.
@Before
public void setUp() {
StreamGobbler gobbler = new StreamGobbler(System.in);
gobbler.start();
daemon = new ConsoleStreamDaemon(null);
}
use of org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler in project linuxtools by eclipse.
the class ErrorStreamDaemonTest method setUp.
@Before
public void setUp() {
StreamGobbler gobbler = new StreamGobbler(System.in);
gobbler.start();
daemon = new ErrorStreamDaemon(null);
}
use of org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler in project linuxtools by eclipse.
the class ScpExec method init.
@Override
protected IStatus init() {
try {
channel = LinuxtoolsProcessFactory.execRemote(cmd, System.out, System.err, remoteOptions.userName, remoteOptions.hostName, remoteOptions.password, remoteOptions.port, envVars);
errorGobbler = new StreamGobbler(channel.getExtInputStream());
inputGobbler = new StreamGobbler(channel.getInputStream());
transferListeners();
return Status.OK_STATUS;
} catch (final JSchException | IOException e) {
return new Status(IStatus.ERROR, ConsoleLogPlugin.PLUGIN_ID, Messages.ScpExec_FileTransferFailed, e);
}
}
Aggregations