public class SliderClusterOperations extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SliderClusterOperations(SliderClusterProtocol appMaster) |
public SliderClusterOperations(SliderClusterProtocol appMaster)
public ClusterNode getNode(String uuid) throws IOException, NoSuchNodeException, org.apache.hadoop.yarn.exceptions.YarnException
uuid - uuid of nodeIOException - IO problemsNoSuchNodeException - if the node isn't foundorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic List<ClusterNode> convertNodeWireToClusterNodes(List<Messages.RoleInstanceState> nodes) throws IOException
nodes - node listIOExceptionpublic String echo(String text) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
text - textorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic ClusterDescription getClusterDescription() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic AggregateConf getInstanceDefinition() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
See SliderClusterProtocol.getInstanceDefinition(Messages.GetInstanceDefinitionRequestProto)
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic boolean killContainer(String id) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
id - container IDorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic String[] listNodeUUIDsByRole(String role) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
role - role name or "" for allIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic List<String> innerListNodeUUIDSByRole(String role) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic List<ClusterNode> listClusterNodesInRole(String role) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
role - IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic List<ClusterNode> listClusterNodes(String[] uuids) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
uuids - instance IDsIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic int waitForRoleInstanceLive(String role, long timeout) throws WaitTimeoutException, IOException, org.apache.hadoop.yarn.exceptions.YarnException
role - role to look fortimeout - time to waitIOException - IOSliderException - SliderWaitTimeoutException - if the wait timed outorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic boolean flex(ConfTree resources) throws IOException
resources - new resourcesIOExceptionpublic void amSuicide(String text, int signal, int delay) throws IOException
signal - exit codetext - text text to logdelay - delay in millisorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic ApplicationLivenessInformation getLivenessInformation() throws IOException
IOExceptionpublic AggregateConf getModelDesired() throws IOException
IOExceptionpublic ConfTreeOperations getModelDesiredAppconf() throws IOException
IOExceptionpublic ConfTreeOperations getModelDesiredResources() throws IOException
IOExceptionpublic AggregateConf getModelResolved() throws IOException
IOExceptionpublic ConfTreeOperations getModelResolvedAppconf() throws IOException
IOExceptionpublic ConfTreeOperations getModelResolvedResources() throws IOException
IOExceptionpublic ConfTreeOperations getLiveResources() throws IOException
IOExceptionpublic Map<String,ContainerInformation> enumContainers() throws IOException
IOExceptionpublic ContainerInformation getContainer(String containerId) throws IOException
IOExceptionpublic List<ContainerInformation> getContainers() throws IOException
IOExceptionpublic Map<String,ComponentInformation> enumComponents() throws IOException
IOExceptionpublic ComponentInformation getComponent(String componentName) throws IOException
IOExceptionpublic NodeInformationList getLiveNodes() throws IOException
IOExceptionpublic NodeInformation getLiveNode(String hostname) throws IOException
IOExceptionpublic PingInformation ping(String text) throws IOException
IOExceptionpublic void stop(String text) throws IOException
IOExceptionpublic ApplicationLivenessInformation getApplicationLiveness() throws IOException
IOExceptionpublic byte[] getClientCertificateStore(String hostname, String clientId, String password, String type) throws IOException
IOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.