Package hudson.maven

Class 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
    • Constructor Detail

      • TcpSocketHostLocator

        public TcpSocketHostLocator()
    • 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