public class YarnContainerClusterEndpoint extends org.springframework.boot.actuate.endpoint.AbstractEndpoint<java.util.Map<java.lang.String,ContainerCluster>> implements org.springframework.beans.factory.InitializingBean
Endpoint
handling operations against ContainerClusterAppmaster
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENDPOINT_ID |
Constructor and Description |
---|
YarnContainerClusterEndpoint()
Instantiates a new yarn container cluster endpoint.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ContainerCluster |
createCluster(java.lang.String clusterId,
java.lang.String clusterDef,
ProjectionData projectionData,
java.util.Map<java.lang.String,java.lang.Object> extraProperties) |
void |
destroyCluster(java.lang.String clusterId) |
java.util.Map<java.lang.String,ContainerCluster> |
getClusters() |
java.util.Map<java.lang.String,ContainerCluster> |
invoke() |
void |
modifyCluster(java.lang.String id,
ProjectionData projectionData) |
void |
setYarnAppmaster(YarnAppmaster yarnAppmaster)
Sets
ContainerClusterAppmaster if passed YarnAppmaster is
instance of it. |
void |
startCluster(java.lang.String clusterId) |
void |
stopCluster(java.lang.String clusterId) |
public static final java.lang.String ENDPOINT_ID
public YarnContainerClusterEndpoint()
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public java.util.Map<java.lang.String,ContainerCluster> invoke()
invoke
in interface org.springframework.boot.actuate.endpoint.Endpoint<java.util.Map<java.lang.String,ContainerCluster>>
@Autowired public void setYarnAppmaster(YarnAppmaster yarnAppmaster)
ContainerClusterAppmaster
if passed YarnAppmaster
is
instance of it.yarnAppmaster
- the yarn application masterpublic java.util.Map<java.lang.String,ContainerCluster> getClusters()
public ContainerCluster createCluster(java.lang.String clusterId, java.lang.String clusterDef, ProjectionData projectionData, java.util.Map<java.lang.String,java.lang.Object> extraProperties)
public void startCluster(java.lang.String clusterId)
public void stopCluster(java.lang.String clusterId)
public void destroyCluster(java.lang.String clusterId)
public void modifyCluster(java.lang.String id, ProjectionData projectionData)