Class SimpleEurekaHttpServer


  • public class SimpleEurekaHttpServer
    extends java.lang.Object
    HTTP server with Eureka compatible REST API that delegates client request to the provided EurekaHttpClient implementation. It is very lightweight implementation that can be used in unit test without incurring to much overhead.
    • Constructor Detail

      • SimpleEurekaHttpServer

        public SimpleEurekaHttpServer​(com.netflix.discovery.shared.transport.EurekaHttpClient requestHandler)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • SimpleEurekaHttpServer

        public SimpleEurekaHttpServer​(com.netflix.discovery.shared.transport.EurekaHttpClient requestHandler,
                                      EurekaTransportEventListener eventListener)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • shutdown

        public void shutdown()
      • getServiceURI

        public java.net.URI getServiceURI()
      • getServerPort

        public int getServerPort()