@Controller @RequestMapping(value="/runtime/modules") @ExposesResourceFor(value=ModuleMetadataResource.class) public class ModulesMetadataController extends java.lang.Object
Constructor and Description |
---|
ModulesMetadataController(ModuleMetadataRepository moduleMetadataRepository) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ModuleMetadataResource> |
displayForJobname(java.lang.String jobName)
Will return a collection of
ModuleMetadata that are associated with
the provided jobname request parameter. |
org.springframework.hateoas.PagedResources<ModuleMetadataResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler)
List module metadata for all the deployed modules.
|
org.springframework.hateoas.PagedResources<ModuleMetadataResource> |
listByContainer(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler,
java.lang.String containerId)
List the module metadata for all the modules that are deployed to the given container.
|
ModuleMetadataResource |
listByContainerAndModuleId(java.lang.String containerId,
java.lang.String moduleId)
List the module metadata for the given moduleId and deployed to the given containerId.
|
org.springframework.hateoas.PagedResources<ModuleMetadataResource> |
listByModule(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler,
java.lang.String moduleId)
List the module metadata for all the modules with the given moduleId.
|
@Autowired public ModulesMetadataController(ModuleMetadataRepository moduleMetadataRepository)
@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) @ResponseBody public org.springframework.hateoas.PagedResources<ModuleMetadataResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler)
pageable
- pagination informationassembler
- paged resource assemblerModuleMetadataResource
@RequestMapping(value="", method=GET, params="containerId") @ResponseStatus(value=OK) @ResponseBody public org.springframework.hateoas.PagedResources<ModuleMetadataResource> listByContainer(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler, @RequestParam(value="containerId") java.lang.String containerId)
pageable
- pagination informationassembler
- paged resource assemblercontainerId
- the container id of the container to chooseModuleMetadataResource
@RequestMapping(value="", method=GET, params="moduleId") @ResponseStatus(value=OK) @ResponseBody public org.springframework.hateoas.PagedResources<ModuleMetadataResource> listByModule(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<ModuleMetadata> assembler, @RequestParam(value="moduleId") java.lang.String moduleId)
pageable
- pagination informationassembler
- paged resource assemblermoduleId
- the module id of the module metadata to listModuleMetadataResource
@RequestMapping(value="", method=GET, params={"containerId","moduleId"}) @ResponseStatus(value=OK) @ResponseBody public ModuleMetadataResource listByContainerAndModuleId(@RequestParam(value="containerId") java.lang.String containerId, @RequestParam(value="moduleId") java.lang.String moduleId)
containerId
- the container id of the container to choosemoduleId
- the module id of the module metadata to listModuleMetadataResource
of the module@RequestMapping(value="", method=GET, params="jobname") @ResponseStatus(value=OK) @ResponseBody public java.util.List<ModuleMetadataResource> displayForJobname(@RequestParam(value="jobname") java.lang.String jobName)
ModuleMetadata
that are associated with
the provided jobname
request parameter.jobName
- parameter must not be nullModuleMetadata
, might be empty but never null