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 Details

    • JavaVersionChecker

      public JavaVersionChecker(SlaveComputer computer, TaskListener listener, String jvmOptions, com.trilead.ssh2.Connection connection)
      Deprecated.
  • Method Details

    • 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" in r, determine if this version of Java is supported.
      Parameters:
      logger - where to log the output
      javaCommand - the command executed, used for logging
      r - the output of "java -version"
      output - copy the data from r into this output buffer
      Throws:
      IOException