org.resilientedge.jockey.servicebridge
Class BasicDescriptorMatchStrategy

java.lang.Object
  |
  +--org.resilientedge.jockey.servicebridge.BasicDescriptorMatchStrategy
All Implemented Interfaces:
DescriptorMatchStrategy

public class BasicDescriptorMatchStrategy
extends java.lang.Object
implements DescriptorMatchStrategy

An interface for a strategy that compares two service descriptors and can answer simple matching questions about them

Version:
$Revision: 1.1.1.1 $
Author:
AVaughan

Constructor Summary
BasicDescriptorMatchStrategy()
           
 
Method Summary
 boolean isExactMatch(SBServiceDescriptor queryDescriptor, SBServiceDescriptor serviceDescriptor)
          do the two services have exactly the same attribute values...
 boolean isPartialMatch(SBServiceDescriptor queryDescriptor, SBServiceDescriptor serviceDescriptor)
          are the two services a good general match --- this basic strategy will return a match if the name is the same or if any of the call descriptors match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDescriptorMatchStrategy

public BasicDescriptorMatchStrategy()
Method Detail

isPartialMatch

public boolean isPartialMatch(SBServiceDescriptor queryDescriptor,
                              SBServiceDescriptor serviceDescriptor)
are the two services a good general match --- this basic strategy will return a match if the name is the same or if any of the call descriptors match.
Specified by:
isPartialMatch in interface DescriptorMatchStrategy
Parameters:
queryDescriptor - a SBServiceDescriptor value that is partially to fully filled out and is the search pattern to find an available matching service.
serviceDescriptor - a SBServiceDescriptor value of an available local service
Returns:
a boolean true if there is a partial match, false otherwise.

isExactMatch

public boolean isExactMatch(SBServiceDescriptor queryDescriptor,
                            SBServiceDescriptor serviceDescriptor)
do the two services have exactly the same attribute values...
Specified by:
isExactMatch in interface DescriptorMatchStrategy
Parameters:
queryDescriptor - a SBServiceDescriptor value that is fully filled out and is the search pattern to find an available exact matching service.
serviceDescriptor - a SBServiceDescriptor value of an available local service


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.