@Controller @RequestMapping(value="/runtime/containers") @ExposesResourceFor(value=DetailedContainerResource.class) public class ContainersController extends java.lang.Object
Constructor and Description |
---|
ContainersController(ContainerRepository containerRepository) |
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.PagedResources<DetailedContainerResource> |
list(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<DetailedContainer> assembler)
List all the available containers along with the message rates for
each deployed modules.
|
void |
shutdownContainer(java.lang.String containerId)
Shutdown container by the given containerId.
|
@Autowired public ContainersController(ContainerRepository containerRepository)
@RequestMapping(value="", method=GET) @ResponseStatus(value=OK) @ResponseBody public org.springframework.hateoas.PagedResources<DetailedContainerResource> list(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<DetailedContainer> assembler) throws ModuleMessageRateNotFoundException, org.codehaus.jettison.json.JSONException
ModuleMessageRateNotFoundException
org.codehaus.jettison.json.JSONException
@RequestMapping(value="", method=DELETE, params="containerId") @ResponseStatus(value=OK) public void shutdownContainer(java.lang.String containerId) throws NoSuchContainerException, ContainerShutdownException