org.ogf.saga.task
Class TaskFactory

java.lang.Object
  extended by org.ogf.saga.task.TaskFactory

public abstract class TaskFactory
extends Object

Factory for objects in the task package.


Constructor Summary
TaskFactory()
           
 
Method Summary
static TaskContainer createTaskContainer()
          Constructs a TaskContainer object.
static TaskContainer createTaskContainer(String sagaFactoryClassname)
          Constructs a TaskContainer object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskFactory

public TaskFactory()
Method Detail

createTaskContainer

public static TaskContainer createTaskContainer()
                                         throws NotImplementedException,
                                                TimeoutException,
                                                NoSuccessException
Constructs a TaskContainer object. This method is to be provided by the factory.

Returns:
the task container.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createTaskContainer

public static TaskContainer createTaskContainer(String sagaFactoryClassname)
                                         throws NotImplementedException,
                                                TimeoutException,
                                                NoSuccessException
Constructs a TaskContainer object. This method is to be provided by the factory.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
Returns:
the task container.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.


The SAGA Java language bindings, version-1.1.1