@RequestMapping(value="/container") @RestController public class ContainerRestController extends BaseRestController<au.com.jcloud.lxd.model.Container>
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
ContainerRestController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
changeContainerState(javax.servlet.http.HttpServletRequest request,
String containerName,
String action) |
org.springframework.http.ResponseEntity<?> |
createNewContainer(javax.servlet.http.HttpServletRequest request,
AddContainerInput addContainerInput,
org.springframework.validation.Errors errors) |
org.springframework.http.ResponseEntity<?> |
createNewContainerByUrl(javax.servlet.http.HttpServletRequest request,
String newContainerName,
String imageAlias,
String ephemeral,
String profile,
String config) |
org.springframework.http.ResponseEntity<?> |
deleteContainer(javax.servlet.http.HttpServletRequest request,
String name) |
private List<au.com.jcloud.lxd.model.Container> |
findContainersForLxdService(au.com.jcloud.lxd.service.ICachingLxdService lxdService,
String searchTerm) |
Map<String,au.com.jcloud.lxd.model.Container> |
getEntities(au.com.jcloud.lxd.service.ICachingLxdService lxdService) |
au.com.jcloud.lxd.model.Container |
getEntity(au.com.jcloud.lxd.service.ICachingLxdService lxdService,
String name) |
private org.springframework.http.ResponseEntity<?> |
oldSearch(javax.servlet.http.HttpServletRequest request,
String searchTerm) |
String |
reloadState(javax.servlet.http.HttpServletRequest request,
String name) |
org.springframework.http.ResponseEntity<?> |
renameContainer(javax.servlet.http.HttpServletRequest request,
String name,
String newContainerName) |
org.springframework.http.ResponseEntity<?> |
startContainer(javax.servlet.http.HttpServletRequest request,
String containerName) |
org.springframework.http.ResponseEntity<?> |
stopContainer(javax.servlet.http.HttpServletRequest request,
String containerName) |
getEntities, getLxdService, getLxdService, getServerService, isDefaultServerAndWindowsOs, performSearch, reloadEntity, searchEntity, searchEntity, setLxdService, setServerService, viewEntity@RequestMapping(value="/reload/state/{name}",
method={GET,POST})
public String reloadState(javax.servlet.http.HttpServletRequest request,
@PathVariable
String name)
public au.com.jcloud.lxd.model.Container getEntity(au.com.jcloud.lxd.service.ICachingLxdService lxdService,
String name)
getEntity in class BaseRestController<au.com.jcloud.lxd.model.Container>public Map<String,au.com.jcloud.lxd.model.Container> getEntities(au.com.jcloud.lxd.service.ICachingLxdService lxdService) throws IOException, InterruptedException
getEntities in class BaseRestController<au.com.jcloud.lxd.model.Container>IOExceptionInterruptedException@RequestMapping(value="/start/{containerName}",
method={GET,POST})
public org.springframework.http.ResponseEntity<?> startContainer(javax.servlet.http.HttpServletRequest request,
@PathVariable
String containerName)
@RequestMapping(value="/stop/{containerName}",
method={GET,POST})
public org.springframework.http.ResponseEntity<?> stopContainer(javax.servlet.http.HttpServletRequest request,
@PathVariable
String containerName)
@RequestMapping(value="/state/{containerName}/{action}",
method={GET,POST})
public org.springframework.http.ResponseEntity<?> changeContainerState(javax.servlet.http.HttpServletRequest request,
@PathVariable
String containerName,
@PathVariable
String action)
@PostMapping(value="/create")
public org.springframework.http.ResponseEntity<?> createNewContainer(javax.servlet.http.HttpServletRequest request,
@RequestBody
AddContainerInput addContainerInput,
org.springframework.validation.Errors errors)
@PostMapping(value="/delete/{name}")
public org.springframework.http.ResponseEntity<?> deleteContainer(javax.servlet.http.HttpServletRequest request,
@PathVariable
String name)
@RequestMapping(value="/rename/{name}/{newContainerName}",
method={GET,POST})
public org.springframework.http.ResponseEntity<?> renameContainer(javax.servlet.http.HttpServletRequest request,
@PathVariable
String name,
@PathVariable
String newContainerName)
@PostMapping(value="/create/{newContainerName}/{imageAlias}/{ephemeral}/{profile}/{config}")
public org.springframework.http.ResponseEntity<?> createNewContainerByUrl(javax.servlet.http.HttpServletRequest request,
@PathVariable
String newContainerName,
@PathVariable
String imageAlias,
@PathVariable
String ephemeral,
@PathVariable
String profile,
@PathVariable
String config)
private org.springframework.http.ResponseEntity<?> oldSearch(javax.servlet.http.HttpServletRequest request,
@PathVariable
String searchTerm)
private List<au.com.jcloud.lxd.model.Container> findContainersForLxdService(au.com.jcloud.lxd.service.ICachingLxdService lxdService, String searchTerm) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2025 JCloud. All rights reserved.