org.resilientedge.jockey.servicebridge
Interface DescriptorMatchStrategy
- All Known Implementing Classes:
- BasicDescriptorMatchStrategy
- public interface 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
isPartialMatch
public boolean isPartialMatch(SBServiceDescriptor queryDescriptor,
SBServiceDescriptor serviceDescriptor)
- are the two services a good general match
- 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...
- 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.