public class ContainerRequestHint
extends java.lang.Object
Constructor and Description |
---|
ContainerRequestHint(java.lang.Object id,
org.apache.hadoop.yarn.api.records.Resource capability,
java.lang.String[] hosts,
java.lang.String[] racks,
org.apache.hadoop.yarn.api.records.Priority priority)
Instantiates a new container request data.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.Resource |
getCapability()
Gets the capability.
|
java.lang.String[] |
getHosts()
Gets the hosts.
|
java.lang.Object |
getId()
Gets the id.
|
org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Gets the priority.
|
java.lang.String[] |
getRacks()
Gets the racks.
|
java.lang.String |
toString() |
public ContainerRequestHint(java.lang.Object id, org.apache.hadoop.yarn.api.records.Resource capability, java.lang.String[] hosts, java.lang.String[] racks, org.apache.hadoop.yarn.api.records.Priority priority)
id
- the idcapability
- the capabilityhosts
- the hostsracks
- the rackspriority
- the prioritypublic java.lang.Object getId()
public org.apache.hadoop.yarn.api.records.Resource getCapability()
public java.lang.String[] getHosts()
public java.lang.String[] getRacks()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public java.lang.String toString()
toString
in class java.lang.Object