public class RichGaugeTemplate extends java.lang.Object implements RichGaugeOperations
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> |
resources
Holds discovered URLs of the API.
|
protected org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
Constructor and Description |
---|
RichGaugeTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String name)
Delete the given named rich gauge
|
org.springframework.hateoas.PagedResources<MetricResource> |
list()
List the names of the available richgauges
|
RichGaugeResource |
retrieve(java.lang.String name)
Display the value of the named Rich Gauge
|
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public RichGaugeTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate)
public RichGaugeResource retrieve(java.lang.String name)
RichGaugeOperations
retrieve
in interface RichGaugeOperations
name
- the name of the rich gaugepublic org.springframework.hateoas.PagedResources<MetricResource> list()
RichGaugeOperations
list
in interface RichGaugeOperations
public void delete(java.lang.String name)
RichGaugeOperations
delete
in interface RichGaugeOperations
name
- the name of the rich gauge to delete