|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.client.PreWarmContext
@InterfaceAudience.Private @InterfaceStability.Unstable public class PreWarmContext
Context to define how the pre-warm containers should be launched within a session.
| Constructor Summary | |
|---|---|
PreWarmContext(ProcessorDescriptor processorDescriptor,
org.apache.hadoop.yarn.api.records.Resource resource,
int numTasks,
VertexLocationHint locationHints)
Context to define how to pre-warm a TezSession. |
|
| Method Summary | |
|---|---|
Map<String,String> |
getEnvironment()
|
String |
getJavaOpts()
|
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> |
getLocalResources()
|
VertexLocationHint |
getLocationHints()
|
int |
getNumTasks()
|
ProcessorDescriptor |
getProcessorDescriptor()
|
org.apache.hadoop.yarn.api.records.Resource |
getResource()
|
PreWarmContext |
setEnvironment(Map<String,String> environment)
Set the Environment for the pre-warm containers. |
PreWarmContext |
setJavaOpts(String javaOpts)
Set the Java opts for the pre-warm containers. |
PreWarmContext |
setLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
Set the LocalResources for the pre-warm containers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreWarmContext(ProcessorDescriptor processorDescriptor,
org.apache.hadoop.yarn.api.records.Resource resource,
int numTasks,
VertexLocationHint locationHints)
processorDescriptor - The processor to run within a Tez Task after launching a containerresource - The resource requirements for each containernumTasks - The number of tasks to run. The num of tasks can drive how many
containers are launched. However, as containers are re-used, the
total number of launched containers will likely be less than the
specified number of tasks.locationHints - The location hints for the containers to be launched.| Method Detail |
|---|
public PreWarmContext setLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
localResources - LocalResources for the container
public PreWarmContext setEnvironment(Map<String,String> environment)
environment - Container environment
public PreWarmContext setJavaOpts(String javaOpts)
javaOpts - Container java opts
public ProcessorDescriptor getProcessorDescriptor()
public org.apache.hadoop.yarn.api.records.Resource getResource()
public int getNumTasks()
public VertexLocationHint getLocationHints()
public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getLocalResources()
public Map<String,String> getEnvironment()
public String getJavaOpts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||