org.globus.ogsa.impl.ogsi
Class HandleResolverProvider

java.lang.Object
  extended byorg.globus.ogsa.impl.ogsi.HandleResolverProvider
All Implemented Interfaces:
OperationProvider

public class HandleResolverProvider
extends java.lang.Object
implements OperationProvider

Implements a handle resolver to get a new updated GSR for a handle


Constructor Summary
HandleResolverProvider()
           
 
Method Summary
 LocatorType findByHandle(LocatorType handleSet, LocatorType gsrExclusionSet)
          Returns a locator containing one or more Grid Service References for the Grid Service Handles in the HandleSet locator.
 javax.xml.namespace.QName[] getOperations()
          Called during initialization when the Grid service needs to find out what operations are supported by this provider.
 void initialize(GridServiceBase serviceBase)
          Called when the operation provider is added to a grid service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleResolverProvider

public HandleResolverProvider()
Method Detail

getOperations

public javax.xml.namespace.QName[] getOperations()
Description copied from interface: OperationProvider
Called during initialization when the Grid service needs to find out what operations are supported by this provider.

Specified by:
getOperations in interface OperationProvider
Returns:
an array of operation qnames as defined in WSDL. An OperationProvider can use the empty string "" to denote that all operations with a certain local name are implemented. Similarly the wildcard "*" can be used in the local part of the qname to denote that all operations within a certain namespace are implemented. Combining these two approaches and returning: new QName[] {new QName("","*")}, will result in all incoming operations being redirected to this provider (apart from the OGSI defined GridService interface operations provided by the GridServiceBase implementation. Note that individual operations in the OGSI namespace could still be overridded with this approach, but not using the 'all namespaces and all operation' wildcard.

initialize

public void initialize(GridServiceBase serviceBase)
                throws GridServiceException
Description copied from interface: OperationProvider
Called when the operation provider is added to a grid service.

Specified by:
initialize in interface OperationProvider
Parameters:
serviceBase - the service this provider is being associated with
Throws:
GridServiceException - if the initialization (and service creation is to be aborted)

findByHandle

public LocatorType findByHandle(LocatorType handleSet,
                                LocatorType gsrExclusionSet)
                         throws java.rmi.RemoteException,
                                RedirectionFaultType,
                                ServiceHasTerminatedFaultType,
                                InvalidHandleFaultType,
                                NoAdditionalReferencesAvailableFaultType,
                                FaultType,
                                TemporarilyUnavailableFaultType,
                                NoSuchServiceStartedFaultType,
                                NoReferencesAvailableFaultType,
                                NoSuchServiceFaultType
Returns a locator containing one or more Grid Service References for the Grid Service Handles in the HandleSet locator.

Parameters:
handleSet - A locator containing one or more Grid Service Handles that refer to the same Grid service instance.
gsrExclusionSet - A locator containing one or more GSRs that should not be returned (not used currently)
Returns:
A service locator containing one or more GSRs for the input HandleSet.
Throws:
java.rmi.RemoteException
RedirectionFaultType
ServiceHasTerminatedFaultType
InvalidHandleFaultType
NoAdditionalReferencesAvailableFaultType
FaultType
TemporarilyUnavailableFaultType
NoSuchServiceStartedFaultType
NoReferencesAvailableFaultType
NoSuchServiceFaultType


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.