@RestController @RequestMapping(value="/modules") @ExposesResourceFor(value=org.springframework.cloud.dataflow.rest.resource.ModuleRegistrationResource.class) public class ModuleController extends Object
Constructor and Description |
---|
ModuleController(ModuleRegistry registry) |
Modifier and Type | Method and Description |
---|---|
DetailedModuleRegistrationResource |
info(org.springframework.cloud.dataflow.core.ModuleType type,
String name)
Retrieve detailed information about a particular module.
|
org.springframework.hateoas.PagedResources<? extends ModuleRegistrationResource> |
list(org.springframework.data.web.PagedResourcesAssembler<ModuleRegistration> assembler,
org.springframework.cloud.dataflow.core.ModuleType type,
boolean detailed)
List module registrations.
|
void |
register(org.springframework.cloud.dataflow.core.ModuleType type,
String name,
String coordinates,
boolean force)
Register a module name and type with its Maven coordinates.
|
void |
unregister(org.springframework.cloud.dataflow.core.ModuleType type,
String name)
Unregister a module name and type.
|
@Autowired public ModuleController(ModuleRegistry registry)
@RequestMapping(method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.PagedResources<? extends ModuleRegistrationResource> list(org.springframework.data.web.PagedResourcesAssembler<ModuleRegistration> assembler, @RequestParam(value="type",required=false) org.springframework.cloud.dataflow.core.ModuleType type, @RequestParam(value="detailed",defaultValue="false") boolean detailed)
@RequestMapping(value="/{type}/{name}", method=GET) @ResponseStatus(value=OK) public DetailedModuleRegistrationResource info(@PathVariable(value="type") org.springframework.cloud.dataflow.core.ModuleType type, @PathVariable(value="name") String name)
type
- module typename
- module name@RequestMapping(value="/{type}/{name}", method=POST) @ResponseStatus(value=CREATED) public void register(@PathVariable(value="type") org.springframework.cloud.dataflow.core.ModuleType type, @PathVariable(value="name") String name, @RequestParam(value="coordinates") String coordinates, @RequestParam(value="force",defaultValue="false") boolean force)
type
- module typename
- module namecoordinates
- Maven coordinates for the module artifactforce
- if true
, overwrites a pre-existing registration@RequestMapping(value="/{type}/{name}", method=DELETE) @ResponseStatus(value=OK) public void unregister(@PathVariable(value="type") org.springframework.cloud.dataflow.core.ModuleType type, @PathVariable(value="name") String name)
type
- the module typename
- the module nameCopyright © 2015 Pivotal Software, Inc.. All rights reserved.