Package hudson.maven
Class TcpSocketHostLocator
java.lang.Object
hudson.maven.TcpSocketHostLocator
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
AbstractMavenProcessFactory.UserInetTcpSocketHostLocator
Identify the Host name to use from maven-agent to connect to to Jenkins agent TCP socket.
In simple scenarios both agent and maven process do live on same host without specific network constraints, but for some virtualization usages maven process just can't bind a socket on wildcard host network. This extension give infrastructure plugins a chance to configure the adequate hostname. to handle such network constraints
- Since:
- 2.12
- Author:
- Nicolas De Loof
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<TcpSocketHostLocator>
all()
abstract String
Try to identify the agent TCP socket host name or IP.
-
Constructor Details
-
TcpSocketHostLocator
public TcpSocketHostLocator()
-
-
Method Details
-
getTcpSocketHost
Try to identify the agent TCP socket host name or IP.- Returns:
null
if not found or does not apply to this specific implementation- Throws:
IOException
- if any exception
-
all
-