@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class ExpectedPartitionValueRestController
extends HerdBaseController
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPECTED_PARTITION_VALUES_URI_PREFIX |
| Constructor and Description |
|---|
ExpectedPartitionValueRestController() |
| Modifier and Type | Method and Description |
|---|---|
ExpectedPartitionValuesInformation |
createExpectedPartitionValues(ExpectedPartitionValuesCreateRequest request)
Creates a list of expected partition values for an existing partition key group.
|
ExpectedPartitionValuesInformation |
deleteExpectedPartitionValues(ExpectedPartitionValuesDeleteRequest request)
Deletes specified expected partition values from an existing partition key group which is identified by name.
|
ExpectedPartitionValueInformation |
getExpectedPartitionValue(String partitionKeyGroupName,
String expectedPartitionValue,
Integer offset)
Retrieves an existing expected partition value plus/minus an optional offset.
|
ExpectedPartitionValuesInformation |
getExpectedPartitionValues(String partitionKeyGroupName,
String startExpectedPartitionValue,
String endExpectedPartitionValue)
Retrieves a range of existing expected partition values.
|
addPagingHttpHeaders, validateNoDuplicateQueryStringParamspublic static final String EXPECTED_PARTITION_VALUES_URI_PREFIX
public ExpectedPartitionValueRestController()
@RequestMapping(value="/expectedPartitionValues",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_EXPECTED_PARTITION_VALUES_POST")
public ExpectedPartitionValuesInformation createExpectedPartitionValues(@RequestBody
ExpectedPartitionValuesCreateRequest request)
request - the information needed to create the expected partition values@RequestMapping(value="/expectedPartitionValues/partitionKeyGroups/{partitionKeyGroupName}/expectedPartitionValues/{expectedPartitionValue}",
method=GET)
@Secured(value="FN_EXPECTED_PARTITION_VALUES_GET")
public ExpectedPartitionValueInformation getExpectedPartitionValue(@PathVariable(value="partitionKeyGroupName")
String partitionKeyGroupName,
@PathVariable(value="expectedPartitionValue")
String expectedPartitionValue,
@RequestParam(value="offset",required=false)
Integer offset)
partitionKeyGroupName - the partition key group nameexpectedPartitionValue - the expected partition value to retrieve plus/minus an optional offsetoffset - the optional positive or negative offset@RequestMapping(value="/expectedPartitionValues/partitionKeyGroups/{partitionKeyGroupName}",
method=GET)
@Secured(value="FN_EXPECTED_PARTITION_VALUES_GET")
public ExpectedPartitionValuesInformation getExpectedPartitionValues(@PathVariable(value="partitionKeyGroupName")
String partitionKeyGroupName,
@RequestParam(value="startExpectedPartitionValue",required=false)
String startExpectedPartitionValue,
@RequestParam(value="endExpectedPartitionValue",required=false)
String endExpectedPartitionValue)
partitionKeyGroupName - the partition key group namestartExpectedPartitionValue - the start expected partition value for the expected partition value rangeendExpectedPartitionValue - the end expected partition value for the expected partition value range@RequestMapping(value="/expectedPartitionValues",
method=DELETE,
consumes={"application/xml","application/json"})
@Secured(value="FN_EXPECTED_PARTITION_VALUES_DELETE")
public ExpectedPartitionValuesInformation deleteExpectedPartitionValues(@RequestBody
ExpectedPartitionValuesDeleteRequest request)
request - the information needed to delete the expected partition valuesCopyright © 2019. All rights reserved.