org.apache.tez.dag.app.rm.container
Class ContainerContextMatcher

java.lang.Object
  extended by org.apache.tez.dag.app.rm.container.ContainerContextMatcher
All Implemented Interfaces:
ContainerSignatureMatcher

public class ContainerContextMatcher
extends Object
implements ContainerSignatureMatcher


Constructor Summary
ContainerContextMatcher()
           
 
Method Summary
 Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getAdditionalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> lr1, Map<String,org.apache.hadoop.yarn.api.records.LocalResource> lr2)
          Gets additional resources specified in lr2, which are not present for lr1
 boolean isExactMatch(Object cs1, Object cs2)
          Checks if the container signatures match exactly
 boolean isSuperSet(Object cs1, Object cs2)
          Checks the compatibility between the specified container signatures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerContextMatcher

public ContainerContextMatcher()
Method Detail

isSuperSet

public boolean isSuperSet(Object cs1,
                          Object cs2)
Description copied from interface: ContainerSignatureMatcher
Checks the compatibility between the specified container signatures.

Specified by:
isSuperSet in interface ContainerSignatureMatcher
Returns:
true if the first signature is a super set of the second signature.

isExactMatch

public boolean isExactMatch(Object cs1,
                            Object cs2)
Description copied from interface: ContainerSignatureMatcher
Checks if the container signatures match exactly

Specified by:
isExactMatch in interface ContainerSignatureMatcher
Returns:
true if exact match

getAdditionalResources

public Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getAdditionalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> lr1,
                                                                                           Map<String,org.apache.hadoop.yarn.api.records.LocalResource> lr2)
Description copied from interface: ContainerSignatureMatcher
Gets additional resources specified in lr2, which are not present for lr1

Specified by:
getAdditionalResources in interface ContainerSignatureMatcher
Returns:
additional resources specified in lr2, which are not present for lr1


Copyright © 2014 Apache Software Foundation. All rights reserved.