public abstract class DiscoveryServiceAutoRegistration extends AutoRegistration
AutoRegistration
with discovery services.LOG
Modifier | Constructor and Description |
---|---|
protected |
DiscoveryServiceAutoRegistration(RegistrationConfiguration registrationConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected String |
getErrorMessage(Throwable e,
String description) |
protected void |
performDeregistration(String discoveryService,
RegistrationConfiguration registration,
Publisher<HttpStatus> deregisterPublisher,
String applicationName)
De-register a service from the discovery client.
|
protected void |
performRegistration(String discoveryService,
RegistrationConfiguration registration,
ServiceInstance instance,
Publisher<HttpStatus> registrationObservable)
Register a new service instance in the discovery service.
|
deregister, onApplicationEvent, pulsate, register, validateApplicationName, validateName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supports
protected DiscoveryServiceAutoRegistration(RegistrationConfiguration registrationConfiguration)
registrationConfiguration
- The registration configurationprotected void performRegistration(String discoveryService, RegistrationConfiguration registration, ServiceInstance instance, Publisher<HttpStatus> registrationObservable)
discoveryService
- The discovery serviceregistration
- The registration configurationinstance
- The service instanceregistrationObservable
- The registration observableprotected String getErrorMessage(Throwable e, String description)
e
- The throwabledescription
- The error's descriptionprotected void performDeregistration(String discoveryService, RegistrationConfiguration registration, Publisher<HttpStatus> deregisterPublisher, String applicationName)
discoveryService
- The discovery serviceregistration
- The registration configurationderegisterPublisher
- The registration publisherapplicationName
- The application name to de-register