public class YarnContainerClusterMvcEndpoint
extends org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
MvcEndpoint
adding specific rest API used to
control YarnContainerClusterEndpoint
.Constructor and Description |
---|
YarnContainerClusterMvcEndpoint(YarnContainerClusterEndpoint delegate)
Instantiates a new yarn container cluster mvc endpoint.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.HttpEntity<ContainerClusterResource> |
clusterInfo(java.lang.String clusterId)
Gets a status of a specific container cluster.
|
org.springframework.http.HttpEntity<java.lang.Void> |
createCluster(ContainerClusterCreateRequest request)
Creates a new container cluster.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
destroyCluster(java.lang.String clusterId) |
java.lang.Object |
invoke()
Main
EndpointMvcAdapter.invoke() which returns information
about existing container clusters. |
org.springframework.http.HttpEntity<java.lang.Void> |
modifyCluster(java.lang.String clusterId,
ContainerClusterModifyRequest request)
Modifies a container cluster state.
|
org.springframework.http.HttpEntity<java.lang.Void> |
updateCluster(java.lang.String clusterId,
ContainerClusterCreateRequest request)
Modify a container cluster
|
public YarnContainerClusterMvcEndpoint(YarnContainerClusterEndpoint delegate)
delegate
- the delegate YarnContainerClusterEndpoint
@RequestMapping(method=GET) @ResponseBody public java.lang.Object invoke()
EndpointMvcAdapter.invoke()
which returns information
about existing container clusters.invoke
in class org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
@RequestMapping(method=POST) public org.springframework.http.HttpEntity<java.lang.Void> createCluster(@RequestBody ContainerClusterCreateRequest request)
request
- the container cluster create request@RequestMapping(value="/{clusterId:.*}", method=GET) public org.springframework.http.HttpEntity<ContainerClusterResource> clusterInfo(@PathVariable(value="clusterId") java.lang.String clusterId)
clusterId
- the container cluster identifier@RequestMapping(value="/{clusterId:.*}", method=PUT) public org.springframework.http.HttpEntity<java.lang.Void> modifyCluster(@PathVariable(value="clusterId") java.lang.String clusterId, @RequestBody ContainerClusterModifyRequest request)
clusterId
- the container cluster identifierrequest
- Binding for modify request content@RequestMapping(value="/{clusterId:.*}", method=DELETE) public org.springframework.http.ResponseEntity<java.lang.Void> destroyCluster(@PathVariable(value="clusterId") java.lang.String clusterId)
@RequestMapping(value="/{clusterId:.*}", method=PATCH) public org.springframework.http.HttpEntity<java.lang.Void> updateCluster(@PathVariable(value="clusterId") java.lang.String clusterId, @RequestBody ContainerClusterCreateRequest request)
clusterId
- the container cluster identifierrequest
- the request