org.globus.ogsa.utils
Class GridServiceFactory

java.lang.Object
  extended byorg.globus.ogsa.utils.GridServiceFactory

public class GridServiceFactory
extends java.lang.Object

This class is a wrapper around the OGSI Factory Interface to simplify service creation

See Also:
Factory

Constructor Summary
GridServiceFactory(Factory factory)
          Creates a factory wrapper based on an ogsi Factory proxy
 
Method Summary
 LocatorType createService()
          Create a service instance
 LocatorType createService(java.util.Calendar timeout)
          Create a service instance and set initial lifetime timeout
 LocatorType createService(java.util.Calendar timeout, java.lang.String id)
          Create a service instance and set service id, and timeout
 LocatorType createService(java.util.Calendar timeout, java.lang.String id, ExtensibilityType creationParameters)
          Create a service instance and set service id, and timeout, and extensibility input.
 LocatorType createService(ExtensibilityType creationParameters)
          Create a service instance using extensibility element input
 LocatorType createService(java.lang.String id)
          Create a service instance and set service id
 ExtensibilityType getExtensibilityOutput()
          Gets the extensibility output element of the last service created by this factory wrapper.
 Factory getFactory()
          Gets the actual factory wrapped by this object
 javax.xml.rpc.Stub getStub()
          Gets the stub represenation of the factory wrapped by this object
 TerminationTimeType getTerminationTime()
          Gets the termination time of the last service created by this factory wrapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridServiceFactory

public GridServiceFactory(Factory factory)
Creates a factory wrapper based on an ogsi Factory proxy

Method Detail

createService

public LocatorType createService()
                          throws java.rmi.RemoteException
Create a service instance

Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

createService

public LocatorType createService(ExtensibilityType creationParameters)
                          throws java.rmi.RemoteException
Create a service instance using extensibility element input

Parameters:
creationParameters - custom input parameters to be passed to the service factoy
Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

createService

public LocatorType createService(java.util.Calendar timeout)
                          throws java.rmi.RemoteException
Create a service instance and set initial lifetime timeout

Parameters:
timeout - time until which the service instance is requested to be alive
Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

createService

public LocatorType createService(java.lang.String id)
                          throws java.rmi.RemoteException
Create a service instance and set service id

Parameters:
id - a unique id that identifies this service among others within the same factory. Making use of this id allows for once and only once service creation semantics.
Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

createService

public LocatorType createService(java.util.Calendar timeout,
                                 java.lang.String id)
                          throws java.rmi.RemoteException
Create a service instance and set service id, and timeout

Parameters:
timeout - time until which the service instance is requested to be
id - a unique id that identifies this service among others within the same factory. Making use of this id allows for once and only once service creation semantics.
Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

createService

public LocatorType createService(java.util.Calendar timeout,
                                 java.lang.String id,
                                 ExtensibilityType creationParameters)
                          throws java.rmi.RemoteException
Create a service instance and set service id, and timeout, and extensibility input.

Parameters:
timeout - time until which the service instance is requested to be
id - a unique id that identifies this service among others within the same factory. Making use of this id allows for once and only once service creation semantics.
creationParameters - custom input parameters to be passed to the service factoy
Returns:
locator of service instance created
Throws:
java.rmi.RemoteException

getTerminationTime

public TerminationTimeType getTerminationTime()
Gets the termination time of the last service created by this factory wrapper


getExtensibilityOutput

public ExtensibilityType getExtensibilityOutput()
Gets the extensibility output element of the last service created by this factory wrapper.


getStub

public javax.xml.rpc.Stub getStub()
Gets the stub represenation of the factory wrapped by this object


getFactory

public Factory getFactory()
Gets the actual factory wrapped by this object



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