Package hudson.plugins.sshslaves
Class JavaVersionChecker
- java.lang.Object
-
- hudson.plugins.sshslaves.JavaVersionChecker
-
@Deprecated public class JavaVersionChecker extends Object
Deprecated.class to check if the version of java installed on the agent is a supported one.
-
-
Constructor Summary
Constructors Constructor Description JavaVersionChecker(SlaveComputer computer, TaskListener listener, String jvmOptions, com.trilead.ssh2.Connection connection)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
checkJavaVersion(PrintStream logger, String javaCommand, BufferedReader r, StringWriter output)
Deprecated.Given the output of "java -version" inr
, determine if this version of Java is supported.protected String
resolveJava()
Deprecated.return javaPath if specified in the configuration.
-
-
-
Constructor Detail
-
JavaVersionChecker
public JavaVersionChecker(SlaveComputer computer, TaskListener listener, String jvmOptions, com.trilead.ssh2.Connection connection)
Deprecated.
-
-
Method Detail
-
resolveJava
protected String resolveJava() throws InterruptedException, IOException
Deprecated.return javaPath if specified in the configuration. Finds local Java.- Throws:
InterruptedException
IOException
-
checkJavaVersion
@CheckForNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String checkJavaVersion(PrintStream logger, String javaCommand, BufferedReader r, StringWriter output) throws IOException
Deprecated.Given the output of "java -version" inr
, determine if this version of Java is supported.- Parameters:
logger
- where to log the outputjavaCommand
- the command executed, used for loggingr
- the output of "java -version"output
- copy the data fromr
into this output buffer- Throws:
IOException
-
-