Class InstanceRegistry
java.lang.Object
de.codecentric.boot.admin.server.services.InstanceRegistry
Registry for all application instances that should be managed/administrated by the
Spring Boot Admin server. Backed by an InstanceRepository for persistence and an
InstanceIdGenerator for id generation.
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceRegistry(InstanceRepository repository, InstanceIdGenerator generator) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<InstanceId>deregister(InstanceId id) Remove a specific instance from servicesreactor.core.publisher.Mono<Instance>Get a specific instancereactor.core.publisher.Flux<Instance>Get a list of all registered instances.reactor.core.publisher.Flux<Instance>getInstances(String name) Get a list of all registered application instances.reactor.core.publisher.Mono<InstanceId>register(Registration registration) Register instance.
-
Constructor Details
-
InstanceRegistry
-
-
Method Details
-
register
Register instance.- Parameters:
registration- instance to be registered.- Returns:
- the id of the registered instance.
-
getInstances
Get a list of all registered instances.- Returns:
- list of all instances.
-
getInstances
Get a list of all registered application instances.- Parameters:
name- the name to search for.- Returns:
- list of instances for the given application
-
getInstance
Get a specific instance- Parameters:
id- the id- Returns:
- a Mono with the Instance.
-
deregister
Remove a specific instance from services- Parameters:
id- the instances id to unregister- Returns:
- the id of the unregistered instance
-