eu.planets_project.ifr.core.servreg.api
Interface ServiceRegistry


public interface ServiceRegistry

Registry interface based on the new ServiceDescription objects, supporting query by example.

See Also:
ServiceDescription

Field Summary
static java.lang.String NAME
          The interface name.
static javax.xml.namespace.QName QNAME
          The qualified name.
 
Method Summary
 Response clear()
          Clears the registry of all entries.
 Response delete(ServiceDescription example)
           
 java.util.List<ServiceDescription> query(ServiceDescription example)
          Query by example registry lookup.
 java.util.List<ServiceDescription> queryWithMode(ServiceDescription example, MatchingMode mode)
          Query by example registry lookup with a specified lookup strategy.
 Response register(ServiceDescription serviceDescription)
           
 

Field Detail

NAME

static final java.lang.String NAME
The interface name.

See Also:
Constant Field Values

QNAME

static final javax.xml.namespace.QName QNAME
The qualified name.

Method Detail

register

Response register(ServiceDescription serviceDescription)
Parameters:
serviceDescription - The service description to register
Returns:
A response message

query

java.util.List<ServiceDescription> query(ServiceDescription example)
Query by example registry lookup.

Parameters:
example - The sample service description
Returns:
The services for which all non-null values correspond to the values of the given sample object

queryWithMode

java.util.List<ServiceDescription> queryWithMode(ServiceDescription example,
                                                 MatchingMode mode)
Query by example registry lookup with a specified lookup strategy.

Parameters:
example - The sample service description
mode - The matching strategy to use when matching against the given sample
Returns:
The services for which all non-null values correspond to the values of the given sample object, based on the supplied matching strategy

clear

Response clear()
Clears the registry of all entries.

Returns:
A response message

delete

Response delete(ServiceDescription example)
Parameters:
example - The sample of the service descriptions to delete
Returns:
A response message


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.