public class SliderApplicationIpcClient extends Object implements SliderApplicationApi
Operations are executed via the SliderClusterOperations
instance passed in; raised exceptions may be converted into ones
consistent with the REST API.
| Constructor and Description |
|---|
SliderApplicationIpcClient(SliderClusterOperations operations) |
SliderApplicationIpcClient(SliderClusterProtocol proxy) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ComponentInformation> |
enumComponents()
List all components into a map of [name:info]
|
Map<String,ContainerInformation> |
enumContainers()
Get a map of live containers [containerId:info]
|
ApplicationLivenessInformation |
getApplicationLiveness()
Get the application liveness
|
ComponentInformation |
getComponent(String componentName)
Get information about a component
|
ContainerInformation |
getContainer(String containerId)
Get a container from the container Id
|
ConfTreeOperations |
getDesiredAppconf()
Get the desired application configuration
|
AggregateConf |
getDesiredModel()
Get the aggregate desired model
|
ConfTreeOperations |
getDesiredResources()
Get the desired YARN resources
|
NodeInformation |
getLiveNode(String hostname)
Get information about a node
|
NodeInformationList |
getLiveNodes()
List all nodes into a map of [name:info]
|
ConfTreeOperations |
getLiveResources()
Get the live YARN resources
|
ConfTreeOperations |
getResolvedAppconf()
Get the resolved application configuration
|
AggregateConf |
getResolvedModel()
Get the aggregate resolved model
|
ConfTreeOperations |
getResolvedResources()
Get the resolved YARN resources
|
PingInformation |
ping(String text)
Ping as a GET
|
void |
putDesiredResources(ConfTree updated)
Put an updated resources structure.
|
void |
stop(String text)
Stop the AM (async operation)
|
String |
toString() |
public SliderApplicationIpcClient(SliderClusterOperations operations)
public SliderApplicationIpcClient(SliderClusterProtocol proxy)
public AggregateConf getDesiredModel() throws IOException
SliderApplicationApigetDesiredModel in interface SliderApplicationApiIOException - on any failurepublic ConfTreeOperations getDesiredAppconf() throws IOException
SliderApplicationApigetDesiredAppconf in interface SliderApplicationApiIOException - on any failurepublic ConfTreeOperations getDesiredResources() throws IOException
SliderApplicationApigetDesiredResources in interface SliderApplicationApiIOException - on any failurepublic void putDesiredResources(ConfTree updated) throws IOException
SliderApplicationApiputDesiredResources in interface SliderApplicationApiupdated - updated resourcesIOException - on any problem.public AggregateConf getResolvedModel() throws IOException
SliderApplicationApigetResolvedModel in interface SliderApplicationApiIOException - on any failurepublic ConfTreeOperations getResolvedAppconf() throws IOException
SliderApplicationApigetResolvedAppconf in interface SliderApplicationApiIOException - on any failurepublic ConfTreeOperations getResolvedResources() throws IOException
SliderApplicationApigetResolvedResources in interface SliderApplicationApiIOException - on any failurepublic ConfTreeOperations getLiveResources() throws IOException
SliderApplicationApigetLiveResources in interface SliderApplicationApiIOException - on any failurepublic Map<String,ContainerInformation> enumContainers() throws IOException
SliderApplicationApienumContainers in interface SliderApplicationApiIOException - on any failurepublic ContainerInformation getContainer(String containerId) throws IOException
SliderApplicationApigetContainer in interface SliderApplicationApicontainerId - YARN container IDIOException - on any failurepublic Map<String,ComponentInformation> enumComponents() throws IOException
SliderApplicationApienumComponents in interface SliderApplicationApiIOException - on any failurepublic ComponentInformation getComponent(String componentName) throws IOException
SliderApplicationApigetComponent in interface SliderApplicationApicomponentName - name of the componentIOException - on any failurepublic NodeInformationList getLiveNodes() throws IOException
SliderApplicationApigetLiveNodes in interface SliderApplicationApiIOException - on any failurepublic NodeInformation getLiveNode(String hostname) throws IOException
SliderApplicationApigetLiveNode in interface SliderApplicationApihostname - name of the nodeIOException - on any failurepublic PingInformation ping(String text) throws IOException
SliderApplicationApiping in interface SliderApplicationApitext - text to includeIOException - on any failurepublic void stop(String text) throws IOException
SliderApplicationApistop in interface SliderApplicationApitext - text to includeIOException - on any failurepublic ApplicationLivenessInformation getApplicationLiveness() throws IOException
SliderApplicationApigetApplicationLiveness in interface SliderApplicationApiIOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.