org.globus.ogsa
Interface LazyCreationCallback

All Known Implementing Classes:
ServiceGroupRegistrationProvider

public interface LazyCreationCallback

The LazyCreationCallback interface can be used to get notified when a service was not found in the internal registry. The callback implementation is expected to deploy the service, and upon the return from the method tell the caller whether the service was successfully created or whether no service for the provided handle could be created. Returning false from the callback will result in the org.gridforum.ogsi.NoSuchServiceFaultType fault being thrown. The callback object must be associated with the parent service of the service to be created. The parent of a service is the service registered above in the service path, for example myFactory for the myFactory/myService path.


Method Summary
 boolean lazyCreate(HandleType handle)
          called when a service could not be located in the internal registry and a callback reference was found in the parent service
 

Method Detail

lazyCreate

public boolean lazyCreate(HandleType handle)
                   throws java.rmi.RemoteException,
                          FaultType
called when a service could not be located in the internal registry and a callback reference was found in the parent service

Parameters:
handle - the handle of the service that is to be created
Returns:
true if the service was successfully created, false otherwise
Throws:
java.rmi.RemoteException - if exception occured when trying to create this service, for example when trying to call out to remote object system or database
FaultType - if grid service fault occured when trying to create this service, for example when trying to call out to a remote grid service system


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