Class ApplicationRegistry
java.lang.Object
de.codecentric.boot.admin.server.services.ApplicationRegistry
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 Summary
ConstructorsConstructorDescriptionApplicationRegistry(InstanceRegistry instanceRegistry, InstanceEventPublisher instanceEventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<InstanceId>deregister(String name) reactor.core.publisher.Mono<Application>getApplication(String name) Get a specific application instance.getApplicationForInstance(Instance instance) reactor.core.publisher.Flux<Application>Get a list of all registered applications.reactor.core.publisher.Flux<Application>protected @Nullable BuildVersiongetBuildVersion(List<Instance> instances) protected Instantprotected reactor.core.publisher.Mono<Application>toApplication(String name, reactor.core.publisher.Flux<Instance> instances)
-
Constructor Details
-
ApplicationRegistry
public ApplicationRegistry(InstanceRegistry instanceRegistry, InstanceEventPublisher instanceEventPublisher)
-
-
Method Details
-
getApplications
Get a list of all registered applications.- Returns:
- flux of all the applications.
-
getApplication
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
-
deregister
-
getApplicationForInstance
-
toApplication
protected reactor.core.publisher.Mono<Application> toApplication(String name, reactor.core.publisher.Flux<Instance> instances) -
getBuildVersion
-
getStatus
-
getMax
-