public abstract class SeleniumJarRunner implements SeleniumProcess {
public abstract SeleniumRunOptions initOptions(Computer c);
public void start(Computer computer, TaskListener listener, String name) throws IOException, InterruptedException, ExecutionException {
PluginImpl p = PluginImpl.getPlugin();
final FilePath seleniumJar = new FilePath(SeleniumProcessUtils.findStandAloneServerJar());
final String nodeName = computer.getName();
final String masterName = PluginImpl.getMasterHostName();
String nodehost = computer.getHostName();
SeleniumRunOptions opts = initOptions(computer);
if (opts != null) {
opts.addOptionIfSet("-host", nodehost);
computer.getNode().getRootPath()
.act(new SeleniumCallable(seleniumJar, nodehost, masterName, p.getPort(), nodeName, listener, name, opts));
}
}