java.lang.Object
de.codecentric.boot.admin.server.services.ApplicationRegistry

public class ApplicationRegistry extends Object
Registry for all applications that should be managed/administrated by the Spring Boot Admin server. Backed by an InstanceRegistry for persistence and an InstanceEventPublisher for events
Author:
Dean de Bree
  • Constructor Details

  • Method Details

    • getApplications

      public reactor.core.publisher.Flux<Application> getApplications()
      Get a list of all registered applications.
      Returns:
      flux of all the applications.
    • getApplication

      public reactor.core.publisher.Mono<Application> getApplication(String name)
      Get a specific application instance.
      Parameters:
      name - the name of the application to find.
      Returns:
      a Mono with the application or an empty Mono if not found.
    • getApplicationStream

      public reactor.core.publisher.Flux<Application> getApplicationStream()
    • deregister

      public reactor.core.publisher.Flux<InstanceId> deregister(String name)
    • getApplicationForInstance

      protected reactor.util.function.Tuple2<String,reactor.core.publisher.Flux<Instance>> getApplicationForInstance(Instance instance)
    • toApplication

      protected reactor.core.publisher.Mono<Application> toApplication(String name, reactor.core.publisher.Flux<Instance> instances)
    • getBuildVersion

      @Nullable protected BuildVersion getBuildVersion(List<Instance> instances)
    • getStatus

      protected reactor.util.function.Tuple2<String,Instant> getStatus(List<Instance> instances)
    • getMax

      protected Instant getMax(Instant t1, Instant t2)