@ManagedResource(description="Can be used to display and set the service instance status using the service registry") public class ServiceRegistryEndpoint extends Object implements org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
| Constructor and Description |
|---|
ServiceRegistryEndpoint(ServiceRegistry<?> serviceRegistry) |
| 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 |
setRegistration(Registration registration) |
org.springframework.http.ResponseEntity<?> |
setStatus(String status) |
public ServiceRegistryEndpoint(ServiceRegistry<?> serviceRegistry)
public void setRegistration(Registration registration)
@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.MvcEndpointpublic boolean isSensitive()
isSensitive in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpointpublic Class<? extends org.springframework.boot.actuate.endpoint.Endpoint<?>> getEndpointType()
getEndpointType in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpointCopyright © 2018 Pivotal Software, Inc.. All rights reserved.