Class DefaultApplicationRegistrator

java.lang.Object
de.codecentric.boot.admin.client.registration.DefaultApplicationRegistrator
All Implemented Interfaces:
ApplicationRegistrator

public class DefaultApplicationRegistrator extends Object implements ApplicationRegistrator
  • Constructor Details

  • Method Details

    • register

      public boolean register()
      Registers the client application at spring-boot-admin-server.
      Specified by:
      register in interface ApplicationRegistrator
      Returns:
      true if successful registration on at least one admin server
    • register

      protected boolean register(Application application, String adminUrl, boolean firstAttempt)
    • deregister

      public void deregister()
      Description copied from interface: ApplicationRegistrator
      Tries to deregister currently registered application
      Specified by:
      deregister in interface ApplicationRegistrator
    • getRegisteredId

      public String getRegisteredId()
      Specified by:
      getRegisteredId in interface ApplicationRegistrator
      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.