Package hudson.plugins.sshslaves
Class JavaProvider
java.lang.Object
hudson.plugins.sshslaves.JavaProvider
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
DefaultJavaProvider
Guess where Java is.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<JavaProvider>
all()
All regsitered instances.getJavas
(TaskListener listener, com.trilead.ssh2.Connection connection) Deprecated.getJavas
(SlaveComputer computer, TaskListener listener, com.trilead.ssh2.Connection connection) Returns the list of possible places where java executable might exist.static VersionNumber
Gets minimal required Java version.
-
Constructor Details
-
JavaProvider
public JavaProvider()
-
-
Method Details
-
getJavas
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
All regsitered instances. -
getMinJavaLevel
Gets minimal required Java version.- Returns:
- Minimal Java version required on the controller and agent side.
- Since:
- TODO
-
getJavas(SlaveComputer, TaskListener, Connection)
instead.