public class ContainerContextMatcher extends Object implements ContainerSignatureMatcher
| Constructor and Description |
|---|
ContainerContextMatcher() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean isSuperSet(Object cs1, Object cs2)
ContainerSignatureMatcherisSuperSet in interface ContainerSignatureMatcherpublic boolean isExactMatch(Object cs1, Object cs2)
ContainerSignatureMatcherisExactMatch in interface ContainerSignatureMatcherpublic 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)
ContainerSignatureMatchergetAdditionalResources in interface ContainerSignatureMatcherCopyright © 2014 Apache Software Foundation. All rights reserved.