Class SimpleEurekaHttpServer
- java.lang.Object
-
- com.netflix.discovery.shared.transport.SimpleEurekaHttpServer
-
public class SimpleEurekaHttpServer extends java.lang.ObjectHTTP server with Eureka compatible REST API that delegates client request to the providedEurekaHttpClientimplementation. It is very lightweight implementation that can be used in unit test without incurring to much overhead.
-
-
Constructor Summary
Constructors Constructor Description SimpleEurekaHttpServer(com.netflix.discovery.shared.transport.EurekaHttpClient requestHandler)SimpleEurekaHttpServer(com.netflix.discovery.shared.transport.EurekaHttpClient requestHandler, EurekaTransportEventListener eventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetServerPort()java.net.URIgetServiceURI()voidshutdown()
-
-
-
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
-
-