org.openqa.grid.internal.utils
Class DefaultCapabilityMatcher

java.lang.Object
  extended by org.openqa.grid.internal.utils.DefaultCapabilityMatcher
All Implemented Interfaces:
CapabilityMatcher

public class DefaultCapabilityMatcher
extends java.lang.Object
implements CapabilityMatcher

Default (naive) implementation of the capability matcher.

The default capability matcher will look at all the key from the request do not start with _ and will try to find a node that has at least those capabilities.


Constructor Summary
DefaultCapabilityMatcher()
           
 
Method Summary
 boolean matches(java.util.Map<java.lang.String,java.lang.Object> nodeCapability, java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCapabilityMatcher

public DefaultCapabilityMatcher()
Method Detail

matches

public boolean matches(java.util.Map<java.lang.String,java.lang.Object> nodeCapability,
                       java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
Specified by:
matches in interface CapabilityMatcher


Copyright © 2011. All Rights Reserved.