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.
protected abstract  TaskContainer doCreateTaskContainer()
          Constructs a TaskContainer object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskFactory

public TaskFactory()
Method Detail

doCreateTaskContainer

protected abstract TaskContainer doCreateTaskContainer()
                                                throws NotImplementedException,
                                                       TimeoutException,
                                                       NoSuccessException
Constructs a TaskContainer object. This method is to be provided by the factory.

Returns:
the task container.
Throws:
NotImplementedException
TimeoutException
NoSuccessException

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.


Copyright © 2014 Open Grid Forum. All rights reserved.