Package hudson.plugins.sshslaves
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JavaProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExtensionList<JavaProvider>
all()
All regsitered instances.List<String>
getJavas(TaskListener listener, com.trilead.ssh2.Connection connection)
Deprecated.OverridegetJavas(SlaveComputer, TaskListener, Connection)
instead.List<String>
getJavas(SlaveComputer computer, TaskListener listener, com.trilead.ssh2.Connection connection)
Returns the list of possible places where java executable might exist.static VersionNumber
getMinJavaLevel()
Gets minimal required Java version.
-
-
-
Method Detail
-
getJavas
public List<String> getJavas(TaskListener listener, com.trilead.ssh2.Connection connection)
Deprecated.OverridegetJavas(SlaveComputer, TaskListener, Connection)
instead.
-
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
-
-