@ManagedResource(description="Can be used to display and set the service instance status using the service registry") public class MultiServiceRegistryEndpoint extends Object implements org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
ServiceRegistryEndpoint
Constructor and Description |
---|
MultiServiceRegistryEndpoint(List<org.springframework.cloud.client.serviceregistry.ServiceRegistry> serviceRegistries) |
Modifier and Type | Method and Description |
---|---|
Class<? extends org.springframework.boot.actuate.endpoint.Endpoint<?>> |
getEndpointType() |
String |
getPath() |
org.springframework.http.ResponseEntity |
getStatus() |
boolean |
isSensitive() |
void |
setRegistrations(List<org.springframework.cloud.client.serviceregistry.Registration> registrations) |
org.springframework.http.ResponseEntity<?> |
setStatus(String status) |
public MultiServiceRegistryEndpoint(List<org.springframework.cloud.client.serviceregistry.ServiceRegistry> serviceRegistries)
public void setRegistrations(List<org.springframework.cloud.client.serviceregistry.Registration> registrations)
@RequestMapping(path="instance-status", method=POST) @ResponseBody @ManagedOperation public org.springframework.http.ResponseEntity<?> setStatus(@RequestBody String status)
@RequestMapping(path="instance-status", method=GET) @ResponseBody @ManagedAttribute public org.springframework.http.ResponseEntity getStatus()
public String getPath()
getPath
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
public boolean isSensitive()
isSensitive
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
public Class<? extends org.springframework.boot.actuate.endpoint.Endpoint<?>> getEndpointType()
getEndpointType
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
Copyright © 2018. All rights reserved.