UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server.gt3
Class IndexServiceSearcher

java.lang.Object
  |
  +--org.eurogrid.broker.server.gt3.IndexServiceSearcher
All Implemented Interfaces:
NamedPlugin, XPathSearcher

public class IndexServiceSearcher
extends Object
implements XPathSearcher

Implementation of an XPath searcher that uses a GT3 Index Service.

Version:
$Revision: 1.4 $
Author:
Donal K. Fellows
See Also:
GT3LocalResourceChecker

Constructor Summary
IndexServiceSearcher(String serviceHandle, QName target)
          Create a new search engine access point.
IndexServiceSearcher(String serviceHandle, String targetNamespace, String targetElement)
          Create a new search engine access point.
 
Method Summary
 String getFormalName()
          Get the formal name of the plugin.
 String getName()
          Get the name of the plugin.
 Element[] search(String xpath, String[] namespaceMap, List log)
          Search for elements matching the given XPath expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexServiceSearcher

public IndexServiceSearcher(String serviceHandle,
                            QName target)
Create a new search engine access point.

Parameters:
serviceHandle - The URL that references the index service.
target - The qualified name of the element that the search is rooted at.

IndexServiceSearcher

public IndexServiceSearcher(String serviceHandle,
                            String targetNamespace,
                            String targetElement)
Create a new search engine access point.

Parameters:
serviceHandle - The URL that references the index service.
targetNamespace - The namespace of the element that the search is rooted at.
targetElement - The element (sans namespace) that the search is rooted at.
Method Detail

getFormalName

public String getFormalName()
Description copied from interface: NamedPlugin
Get the formal name of the plugin. This should be long enough to allow people who are not experts with the code to understand it, and will be written to the log to associate itself with the shorter name.

Specified by:
getFormalName in interface NamedPlugin

getName

public String getName()
Description copied from interface: NamedPlugin
Get the name of the plugin. This should be fairly short so that the logging messages aren't too massive.

Specified by:
getName in interface NamedPlugin

search

public Element[] search(String xpath,
                        String[] namespaceMap,
                        List log)
                 throws org.globus.ogsa.GridServiceException,
                        RemoteException,
                        org.gridforum.ogsi.FaultType
Description copied from interface: XPathSearcher
Search for elements matching the given XPath expression.

Specified by:
search in interface XPathSearcher
Parameters:
xpath - The XPath search term.
namespaceMap - Mapping of namespace abbreviations to namespace URIs. Each item in the list should be formatted as an xmlns:...=... pseudo-attribute, except that quotation marks are not needed.
log - List (of strings) that log messages will be added to.
Returns:
Array of elements that are matched by the XPath search term.
org.globus.ogsa.GridServiceException
RemoteException
org.gridforum.ogsi.FaultType

UNICORE Resource Broker NJS Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.