Spring for Apache Hadoop

org.springframework.yarn.am.container
Class ContainerRequestHint

java.lang.Object
  extended by org.springframework.yarn.am.container.ContainerRequestHint

public class ContainerRequestHint
extends java.lang.Object

Helper class used to add request data hints. None of the parameters set here are not guaranteed to be used. For example setting an array of hosts and racks just tells user of this class that we'd like to localise into those locations.

Author:
Janne Valkealahti

Constructor Summary
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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerRequestHint

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)
Instantiates a new container request data.

Parameters:
id - the id
capability - the capability
hosts - the hosts
racks - the racks
priority - the priority
Method Detail

getId

public java.lang.Object getId()
Gets the id.

Returns:
the id

getCapability

public org.apache.hadoop.yarn.api.records.Resource getCapability()
Gets the capability.

Returns:
the capability

getHosts

public java.lang.String[] getHosts()
Gets the hosts.

Returns:
the hosts

getRacks

public java.lang.String[] getRacks()
Gets the racks.

Returns:
the racks

getPriority

public org.apache.hadoop.yarn.api.records.Priority getPriority()
Gets the priority.

Returns:
the priority

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Spring for Apache Hadoop