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.
|
Object |
union(Object cs1,
Object cs2)
Do a union of 2 signatures
Pre-condition.
|
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 ContainerSignatureMatcherpublic Object union(Object cs1, Object cs2)
ContainerSignatureMatcherunion in interface ContainerSignatureMatchercs1 - Signature 1 Original signaturecs2 - Signature 2 New signatureCopyright © 2015 Apache Software Foundation. All rights reserved.