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

public class InstanceRegistry extends Object
Registry for all application instances that should be managed/administrated by the Spring Boot Admin server. Backed by an InstanceRepository for persistence, an InstanceIdGenerator for id generation and InstanceFilter for instance filtering.
  • Constructor Details

  • Method Details

    • register

      public reactor.core.publisher.Mono<InstanceId> register(Registration registration)
      Register instance.
      Parameters:
      registration - instance to be registered.
      Returns:
      the id of the registered instance.
    • getInstances

      public reactor.core.publisher.Flux<Instance> getInstances()
      Get a list of all registered instances that satisfy the filter.
      Returns:
      list of all instances satisfying the filter.
    • getInstances

      public reactor.core.publisher.Flux<Instance> getInstances(String name)
      Get a list of all registered application instances that satisfy the filter.
      Parameters:
      name - the name to search for.
      Returns:
      list of instances for the given application that satisfy the filter.
    • getInstance

      public reactor.core.publisher.Mono<Instance> getInstance(InstanceId id)
      Get a specific instance
      Parameters:
      id - the id
      Returns:
      a Mono with the Instance.
    • deregister

      public reactor.core.publisher.Mono<InstanceId> deregister(InstanceId id)
      Remove a specific instance from services
      Parameters:
      id - the instances id to unregister
      Returns:
      the id of the unregistered instance