org.springframework.yarn.am.container
Class ContainerRequestHint

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

public class ContainerRequestHint
extends 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(Object id, Resource capability, String[] hosts, String[] racks, Priority priority)
          Instantiates a new container request data.
 
Method Summary
 Resource getCapability()
          Gets the capability.
 String[] getHosts()
          Gets the hosts.
 Object getId()
          Gets the id.
 Priority getPriority()
          Gets the priority.
 String[] getRacks()
          Gets the racks.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerRequestHint

public ContainerRequestHint(Object id,
                            Resource capability,
                            String[] hosts,
                            String[] racks,
                            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 Object getId()
Gets the id.

Returns:
the id

getCapability

public Resource getCapability()
Gets the capability.

Returns:
the capability

getHosts

public String[] getHosts()
Gets the hosts.

Returns:
the hosts

getRacks

public String[] getRacks()
Gets the racks.

Returns:
the racks

getPriority

public Priority getPriority()
Gets the priority.

Returns:
the priority

toString

public String toString()
Overrides:
toString in class Object