public interface EurekaOperations
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<HttpStatus> |
deregister(@NotBlank java.lang.String appId,
@NotBlank java.lang.String instanceId)
De-registers a
InstanceInfo with the Eureka server. |
org.reactivestreams.Publisher<ApplicationInfo> |
getApplicationInfo(@NotBlank java.lang.String appId)
Obtain a
ApplicationInfo for the given app id. |
org.reactivestreams.Publisher<java.util.List<ApplicationInfo>> |
getApplicationInfos()
Obtain all of the
ApplicationInfo registered with Eureka. |
org.reactivestreams.Publisher<java.util.List<ApplicationInfo>> |
getApplicationVips(java.lang.String vipAddress)
Obtain all of the
ApplicationInfo registered with Eureka under the given VIP address. |
org.reactivestreams.Publisher<InstanceInfo> |
getInstanceInfo(@NotBlank java.lang.String appId,
@NotBlank java.lang.String instanceId)
Obtain a
InstanceInfo for the given app id. |
org.reactivestreams.Publisher<HttpStatus> |
heartbeat(@NotBlank java.lang.String appId,
@NotBlank java.lang.String instanceId)
Send an application heartbeat to Eureka.
|
org.reactivestreams.Publisher<HttpStatus> |
register(@NotBlank java.lang.String appId,
@Valid @NotNull InstanceInfo instance)
Registers a new
InstanceInfo with the Eureka server. |
org.reactivestreams.Publisher<HttpStatus> |
updateMetadata(@NotBlank java.lang.String appId,
@NotBlank java.lang.String instanceId,
@NotBlank java.lang.String key,
@NotBlank java.lang.String value)
Update application metadata value.
|
org.reactivestreams.Publisher<HttpStatus> |
updateStatus(@NotBlank java.lang.String appId,
@NotBlank java.lang.String instanceId,
InstanceInfo.Status status)
Update the application's status.
|
@Post(uri="/apps/{appId}", single=true) @Retryable(attempts="${eureka.client.registration.retry-count:10}", delay="${eureka.client.registration.retry-delay:3s}") org.reactivestreams.Publisher<HttpStatus> register(@NotBlank @NotBlank java.lang.String appId, @Valid @NotNull @Body @Valid @NotNull InstanceInfo instance)
InstanceInfo with the Eureka server.appId - The application idinstance - The instanceHttpStatus.NO_CONTENT on success@Delete(uri="/apps/{appId}/{instanceId}", single=true) @Retryable(attempts="${eureka.client.registration.retry-count:10}", delay="${eureka.client.registration.retry-delay:3s}") org.reactivestreams.Publisher<HttpStatus> deregister(@NotBlank @NotBlank java.lang.String appId, @NotBlank @NotBlank java.lang.String instanceId)
InstanceInfo with the Eureka server.appId - The application idinstanceId - The instance id (this is the value of InstanceInfo.getId())HttpStatus.OK on success@Get(uri="/apps/{appId}", single=true) org.reactivestreams.Publisher<ApplicationInfo> getApplicationInfo(@NotBlank @NotBlank java.lang.String appId)
ApplicationInfo for the given app id.appId - The app idApplicationInfo instance@Get(uri="/apps/{appId}/{instanceId}", single=true) org.reactivestreams.Publisher<InstanceInfo> getInstanceInfo(@NotBlank @NotBlank java.lang.String appId, @NotBlank @NotBlank java.lang.String instanceId)
InstanceInfo for the given app id.appId - The app idinstanceId - The instance id (this is the value of InstanceInfo.getId())InstanceInfo instanceorg.reactivestreams.Publisher<java.util.List<ApplicationInfo>> getApplicationInfos()
ApplicationInfo registered with Eureka.ApplicationInfo instancesorg.reactivestreams.Publisher<java.util.List<ApplicationInfo>> getApplicationVips(java.lang.String vipAddress)
ApplicationInfo registered with Eureka under the given VIP address.vipAddress - The InstanceInfo.vipAddressApplicationInfo instancesInstanceInfo.vipAddress@Put(uri="/apps/{appId}/{instanceId}", single=true) org.reactivestreams.Publisher<HttpStatus> heartbeat(@NotBlank @NotBlank java.lang.String appId, @NotBlank @NotBlank java.lang.String instanceId)
appId - The application idinstanceId - The instance idHttpStatus.OK on success@Put(uri="/apps/{appId}/{instanceId}/status?value={status}", single=true) org.reactivestreams.Publisher<HttpStatus> updateStatus(@NotBlank @NotBlank java.lang.String appId, @NotBlank @NotBlank java.lang.String instanceId, @NotNull InstanceInfo.Status status)
appId - The application idinstanceId - The instance idstatus - The status to useHttpStatus.OK on success@Put(uri="/apps/{appId}/{instanceId}/metadata?{key}={value}", single=true) org.reactivestreams.Publisher<HttpStatus> updateMetadata(@NotBlank @NotBlank java.lang.String appId, @NotBlank @NotBlank java.lang.String instanceId, @NotBlank @NotBlank java.lang.String key, @NotBlank @NotBlank java.lang.String value)
appId - The application idinstanceId - The instance idkey - The key to updatevalue - The value to updateHttpStatus.OK on success