|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.rpc.YarnRpcAccessor<org.apache.hadoop.yarn.api.ContainerManager> org.springframework.yarn.am.AppmasterCmTemplate
public class AppmasterCmTemplate
Template implementation for AppmasterCmOperations
wrapping
communication using ContainerManager
. Methods for this
template wraps possible exceptions into Spring Dao exception hierarchy.
Constructor Summary | |
---|---|
AppmasterCmTemplate(org.apache.hadoop.conf.Configuration config,
org.apache.hadoop.yarn.api.records.Container container)
|
Method Summary | |
---|---|
org.apache.hadoop.yarn.api.records.ContainerStatus |
getContainerStatus()
Gets the container status. |
protected java.net.InetSocketAddress |
getRpcAddress(org.apache.hadoop.conf.Configuration config)
Gets the InetSocketAddress where this accessor should connect. |
protected org.apache.hadoop.security.UserGroupInformation |
getUser()
Gets the user used to
create the proxy. |
org.apache.hadoop.yarn.api.protocolrecords.StartContainerResponse |
startContainer(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest request)
Start container. |
org.apache.hadoop.yarn.api.protocolrecords.StopContainerResponse |
stopContainer()
Stop container. |
Methods inherited from class org.springframework.yarn.rpc.YarnRpcAccessor |
---|
afterPropertiesSet, createProxy, destroy, execute, getConfiguration, getProxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppmasterCmTemplate(org.apache.hadoop.conf.Configuration config, org.apache.hadoop.yarn.api.records.Container container)
Method Detail |
---|
public org.apache.hadoop.yarn.api.protocolrecords.StartContainerResponse startContainer(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest request)
AppmasterCmOperations
startContainer
in interface AppmasterCmOperations
request
- the request
public org.apache.hadoop.yarn.api.protocolrecords.StopContainerResponse stopContainer()
AppmasterCmOperations
stopContainer
in interface AppmasterCmOperations
public org.apache.hadoop.yarn.api.records.ContainerStatus getContainerStatus()
AppmasterCmOperations
getContainerStatus
in interface AppmasterCmOperations
protected java.net.InetSocketAddress getRpcAddress(org.apache.hadoop.conf.Configuration config)
YarnRpcAccessor
InetSocketAddress
where this accessor should connect.
getRpcAddress
in class YarnRpcAccessor<org.apache.hadoop.yarn.api.ContainerManager>
config
- the yarn configuration
protected org.apache.hadoop.security.UserGroupInformation getUser()
YarnRpcAccessor
user
used to
create the proxy. Default implementation returns null
which means no security is used.
getUser
in class YarnRpcAccessor<org.apache.hadoop.yarn.api.ContainerManager>
YarnRpcAccessor.createProxy()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |