org.apache.tez.dag.app.rm.container
Interface ContainerSignatureMatcher

All Known Implementing Classes:
ContainerContextMatcher

public interface ContainerSignatureMatcher


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.
 

Method Detail

isSuperSet

boolean isSuperSet(Object cs1,
                   Object cs2)
Checks the compatibility between the specified container signatures.

Returns:
true if the first signature is a super set of the second signature.

isExactMatch

boolean isExactMatch(Object cs1,
                     Object cs2)
Checks if the container signatures match exactly

Returns:
true if exact match

getAdditionalResources

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

Parameters:
lr1 -
lr2 -
Returns:
additional resources specified in lr2, which are not present for lr1


Copyright © 2014 Apache Software Foundation. All rights reserved.