Interface LocalServiceExposer

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface LocalServiceExposer
    Implementors of this interface exposes a local service (socket) into the Exasol database.
    • Method Detail

      • forHost

        static LocalServiceExposer forHost​(String host)
        Create an instance of LocalServiceExposer for a host that does not require port mapping.
        Parameters:
        host - host name or IP address of host (but without port) providing the service to expose
        Returns:
        new instance of LocalServiceExposer
      • exposeLocalServiceToDatabase

        InetSocketAddress exposeLocalServiceToDatabase​(int port)
        Get the address for the network scope inside of the Exasol database for a given local service.
        Parameters:
        port - port number
        Returns:
        proxy