Package hudson.maven
Class TcpSocketHostLocator
- java.lang.Object
-
- hudson.maven.TcpSocketHostLocator
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
AbstractMavenProcessFactory.UserInetTcpSocketHostLocator
public abstract class TcpSocketHostLocator extends Object implements ExtensionPoint
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
Constructors Constructor Description TcpSocketHostLocator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static List<TcpSocketHostLocator>
all()
abstract String
getTcpSocketHost()
Try to identify the agent TCP socket host name or IP.
-
-
-
Method Detail
-
getTcpSocketHost
@CheckForNull public abstract String getTcpSocketHost() throws IOException
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
public static List<TcpSocketHostLocator> all()
-
-