public class CounterTemplate extends Object implements CounterOperations
CounterOperations that interacts with the Spring Cloud Data
Flow REST API.| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTER_RELATION |
static String |
COUNTERS_COLLECTION_RELATION |
| Constructor and Description |
|---|
CounterTemplate(org.springframework.web.client.RestTemplate restTemplate,
org.springframework.hateoas.ResourceSupport resources) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.PagedResources<org.springframework.analytics.rest.domain.MetricResource> |
list()
Retrieve basic information (i.e.
|
void |
reset(String name)
Delete the counter with given name.
|
org.springframework.analytics.rest.domain.CounterResource |
retrieve(String name)
Retrieve information about the given named counter.
|
public static final String COUNTERS_COLLECTION_RELATION
public static final String COUNTER_RELATION
public CounterTemplate(org.springframework.web.client.RestTemplate restTemplate,
org.springframework.hateoas.ResourceSupport resources)
public org.springframework.analytics.rest.domain.CounterResource retrieve(String name)
CounterOperationsretrieve in interface CounterOperationsname - the name of the counterpublic org.springframework.hateoas.PagedResources<org.springframework.analytics.rest.domain.MetricResource> list()
CounterOperationslist in interface CounterOperationspublic void reset(String name)
CounterOperationsreset in interface CounterOperationsname - the name of the counterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.