public class CounterTemplate extends java.lang.Object implements CounterOperations
CounterOperations part of the API.| 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 |
|---|
CounterTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Delete the counter with given name
|
org.springframework.hateoas.PagedResources<MetricResource> |
list()
Retrieve basic information (i.e.
|
CounterResource |
retrieve(java.lang.String name)
Retrieve information about the given named counter.
|
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public CounterTemplate(org.springframework.xd.rest.client.impl.AbstractTemplate abstractTemplate)
public CounterResource retrieve(java.lang.String name)
CounterOperationsretrieve in interface CounterOperationspublic org.springframework.hateoas.PagedResources<MetricResource> list()
CounterOperationslist in interface CounterOperationspublic void delete(java.lang.String name)
CounterOperationsdelete in interface CounterOperations