|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.tools.ToolLocationTranslator
public abstract class ToolLocationTranslator
This Jenkins-wide extension points can participate in determining the actual node-specific path
of the ToolInstallation
for the given Node
.
This extension point is useful when there's a deterministic rule of where tools are installed.
One can program such a logic and contribute a ToolLocationTranslator
.
Compared to manually specifying ToolLocationNodeProperty
, duplicated configurations
can be avoided this way.
Entry point to the translation process is
ToolInstallation.translateFor(Node, TaskListener)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary | |
---|---|
ToolLocationTranslator()
|
Method Summary | |
---|---|
static ExtensionList<ToolLocationTranslator> |
all()
Returns all the registered ToolLocationTranslator s. |
abstract String |
getToolHome(Node node,
ToolInstallation installation,
TaskListener log)
Called for each ToolInstallation.translateFor(Node, TaskListener) invocations
(which normally means it's invoked for each NodeSpecific.forNode(Node, TaskListener) )
to translate the tool location into the node specific location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolLocationTranslator()
Method Detail |
---|
public abstract String getToolHome(Node node, ToolInstallation installation, TaskListener log) throws IOException, InterruptedException
ToolInstallation.translateFor(Node, TaskListener)
invocations
(which normally means it's invoked for each NodeSpecific.forNode(Node, TaskListener)
)
to translate the tool location into the node specific location.
If this implementation is capable of determining the location, return the path in the absolute file name.
(This method doesn't return File
so that it can handle path names of a different OS.
Otherwise return null to let other ToolLocationTranslator
s a chance to do translations
on their own.
IOException
InterruptedException
public static ExtensionList<ToolLocationTranslator> all()
ToolLocationTranslator
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |