Tabnine Logo
EurekaHttpServer
Code IndexAdd Tabnine to your IDE (free)

How to use
EurekaHttpServer
in
com.netflix.eureka2.server.http

Best Java code snippets using com.netflix.eureka2.server.http.EurekaHttpServer (Showing top 7 results out of 315)

origin: com.netflix.eureka/eureka2-eureka1-rest-api

Eureka1RegistrationRequestHandler(Eureka1RegistryProxy registryProxy,
                 EurekaHttpServer httpServer) {
  this.registryProxy = registryProxy;
  httpServer.connectHttpEndpoint(ROOT_PATH, this);
}
origin: com.netflix.eureka/eureka2-testkit

public int getHttpServerPort() {
  // Since server might be started on the ephemeral port, we need to get it directly from RxNetty server
  return injector.getInstance(EurekaHttpServer.class).serverPort();
}
origin: com.netflix.eureka/eureka2-server

@Inject
public HealthConnectionHandler(final EurekaHealthStatusAggregatorImpl aggregatedHealth,
                EurekaHttpServer httpServer) {
  updateObservable = aggregatedHealth.components()
      .flatMap(new Func1<List<HealthStatusProvider<?>>, Observable<HealthStatusUpdate<?>>>() {
        @Override
        public Observable<HealthStatusUpdate<?>> call(List<HealthStatusProvider<?>> healthStatusProviders) {
          List<Observable<HealthStatusUpdate<?>>> updatesObservables = new ArrayList<>();
          for (HealthStatusProvider<?> provider : healthStatusProviders) {
            Observable statusUpdateObservable = provider.healthStatus();
            updatesObservables.add(statusUpdateObservable);
          }
          Observable aggregatedObservable = aggregatedHealth.healthStatus();
          updatesObservables.add(aggregatedObservable);
          return Observable.merge(updatesObservables);
        }
      });
  httpServer.connectWebSocketEndpoint("/health", this);
}
origin: com.netflix.eureka/eureka2-eureka1-rest-api

@Inject
public Eureka1RedirectRequestHandler(ExtensionContext context,
                   EurekaHttpServer httpServer) {
  this.context = context;
  httpServer.connectHttpEndpoint(ROOT_PATH, this);
}
origin: com.netflix.eureka/eureka2-write-server

  @Override
  public InstanceInfo.Builder call(HashSet<ServicePort> ports) {
    ports.add(new ServicePort(Names.EUREKA_HTTP, httpServer.serverPort(), false));
    ports.add(new ServicePort(Names.REGISTRATION, registrationServer.serverPort(), false));
    ports.add(new ServicePort(Names.REPLICATION, replicationServer.serverPort(), false));
    ports.add(new ServicePort(Names.DISCOVERY, discoveryServer.serverPort(), false));
    return new InstanceInfo.Builder().withPorts(ports);
  }
})
origin: com.netflix.eureka/eureka2-eureka1-rest-api

@Inject
public Eureka1RootRequestHandler(EurekaHttpServer httpServer,
                 Eureka1RegistrationRequestHandler registrationRequestHandler,
                 Eureka1QueryRequestHandler queryRequestHandler) {
  this.registrationRequestHandler = registrationRequestHandler;
  this.queryRequestHandler = queryRequestHandler;
  httpServer.connectHttpEndpoint(ROOT_PATH, this);
}
origin: com.netflix.eureka/eureka2-write-server

@Inject
public WriteServerRootResource(EurekaHttpServer httpServer) {
  httpServer.connectHttpEndpoint("/eureka2", this);
}
com.netflix.eureka2.server.httpEurekaHttpServer

Javadoc

Eureka HTTP server endpoint. As RxNetty as of now does not support HTTP/WebSocket protocols on the same server port, multiple backend are created with a fronted proxy implemented by RxHttpReverseProxy class.

Most used methods

  • connectHttpEndpoint
  • serverPort
  • connectWebSocketEndpoint

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JOptionPane (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now