Class JavaProvider

java.lang.Object
hudson.plugins.sshslaves.JavaProvider
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
DefaultJavaProvider

public abstract class JavaProvider extends Object implements ExtensionPoint
Guess where Java is.
  • Constructor Details

    • JavaProvider

      public JavaProvider()
  • Method Details

    • getJavas

      public List<String> getJavas(TaskListener listener, com.trilead.ssh2.Connection connection)
    • getJavas

      public List<String> getJavas(SlaveComputer computer, TaskListener listener, com.trilead.ssh2.Connection connection)
      Returns the list of possible places where java executable might exist.
      Returns:
      Can be empty but never null. Absolute path to the possible locations of Java.
    • all

      public static ExtensionList<JavaProvider> all()
      All regsitered instances.
    • getMinJavaLevel

      @NonNull public static VersionNumber getMinJavaLevel()
      Gets minimal required Java version.
      Returns:
      Minimal Java version required on the controller and agent side.
      Since:
      TODO