public static class AMRMClient.ContainerRequest extends Object
Constructor and Description |
---|
AMRMClient.ContainerRequest(Resource capability,
String[] nodes,
String[] racks,
Priority priority)
Instantiates a
AMRMClient.ContainerRequest with the given constraints and
locality relaxation enabled. |
AMRMClient.ContainerRequest(Resource capability,
String[] nodes,
String[] racks,
Priority priority,
boolean relaxLocality)
Instantiates a
AMRMClient.ContainerRequest with the given constraints. |
Modifier and Type | Method and Description |
---|---|
Resource |
getCapability() |
List<String> |
getNodes() |
Priority |
getPriority() |
List<String> |
getRacks() |
boolean |
getRelaxLocality() |
String |
toString() |
public AMRMClient.ContainerRequest(Resource capability, String[] nodes, String[] racks, Priority priority)
AMRMClient.ContainerRequest
with the given constraints and
locality relaxation enabled.capability
- The Resource
to be requested for each container.nodes
- Any hosts to request that the containers are placed on.racks
- Any racks to request that the containers are placed on. The
racks corresponding to any hosts requested will be automatically
added to this list.priority
- The priority at which to request the containers. Higher
priorities have lower numerical values.public AMRMClient.ContainerRequest(Resource capability, String[] nodes, String[] racks, Priority priority, boolean relaxLocality)
AMRMClient.ContainerRequest
with the given constraints.capability
- The Resource
to be requested for each container.nodes
- Any hosts to request that the containers are placed on.racks
- Any racks to request that the containers are placed on. The
racks corresponding to any hosts requested will be automatically
added to this list.priority
- The priority at which to request the containers. Higher
priorities have lower numerical values.relaxLocality
- If true, containers for this request may be assigned on hosts
and racks other than the ones explicitly requested.Copyright © 2013 Apache Software Foundation. All rights reserved.