Class DefaultApplicationRegistrator
java.lang.Object
de.codecentric.boot.admin.client.registration.DefaultApplicationRegistrator
- All Implemented Interfaces:
ApplicationRegistrator
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultApplicationRegistrator(ApplicationFactory applicationFactory, RegistrationClient registrationClient, String[] adminUrls, boolean registerOnce) -
Method Summary
Modifier and TypeMethodDescriptionvoidTries to deregister currently registered applicationbooleanregister()Registers the client application at spring-boot-admin-server.protected booleanregister(Application application, String adminUrl, boolean firstAttempt)
-
Constructor Details
-
DefaultApplicationRegistrator
public DefaultApplicationRegistrator(ApplicationFactory applicationFactory, RegistrationClient registrationClient, String[] adminUrls, boolean registerOnce)
-
-
Method Details
-
register
public boolean register()Registers the client application at spring-boot-admin-server.- Specified by:
registerin interfaceApplicationRegistrator- Returns:
- true if successful registration on at least one admin server
-
register
-
deregister
public void deregister()Description copied from interface:ApplicationRegistratorTries to deregister currently registered application- Specified by:
deregisterin interfaceApplicationRegistrator
-
getRegisteredId
- Specified by:
getRegisteredIdin interfaceApplicationRegistrator- Returns:
- the id of this client as given by the admin server. Returns null if the client has not registered against the admin server yet.
-