org.ogf.saga.stream
Class StreamFactory

java.lang.Object
  extended by org.ogf.saga.stream.StreamFactory

public abstract class StreamFactory
extends Object

Factory for objects from the stream package.


Constructor Summary
StreamFactory()
           
 
Method Summary
static Stream createStream(Session session, URL name)
          Creates a Stream.
static Stream createStream(String sagaFactoryClassname, Session session, URL name)
          Creates a Stream.
static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname, TaskMode mode, Session session, URL name)
          Creates a task that creates a Stream.
static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname, TaskMode mode, URL name)
          Creates a task that creates a Stream using the default session.
static Stream createStream(String sagaFactoryClassname, URL name)
          Creates a Stream using the default session.
static Task<StreamFactory,Stream> createStream(TaskMode mode, Session session, URL name)
          Creates a task that creates a Stream.
static Task<StreamFactory,Stream> createStream(TaskMode mode, URL name)
          Creates a task that creates a Stream using the default session.
static Stream createStream(URL name)
          Creates a Stream using the default session.
static StreamServer createStreamServer()
          Creates a StreamServer using the default session.
static StreamServer createStreamServer(Session session)
          Creates a StreamServer.
static StreamServer createStreamServer(Session session, URL name)
          Creates a StreamServer.
static StreamServer createStreamServer(String sagaFactoryClassname)
          Creates a StreamServer using the default session.
static StreamServer createStreamServer(String sagaFactoryClassname, Session session)
          Creates a StreamServer.
static StreamServer createStreamServer(String sagaFactoryClassname, Session session, URL name)
          Creates a StreamServer.
static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode)
          Creates a task that creates a StreamServer using the default session.
static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, Session session)
          Creates a task that creates a StreamServer.
static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, Session session, URL name)
          Creates a task that creates a StreamServer.
static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, URL name)
          Creates a task that creates a StreamServer using the default session.
static StreamServer createStreamServer(String sagaFactoryClassname, URL name)
          Creates a StreamServer using the default session.
static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode)
          Creates a task that creates a StreamServer using the default session.
static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, Session session)
          Creates a task that creates a StreamServer.
static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, Session session, URL name)
          Creates a task that creates a StreamServer.
static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, URL name)
          Creates a task that creates a StreamServer using the default session.
static StreamServer createStreamServer(URL name)
          Creates a StreamServer using the default session.
protected abstract  Stream doCreateStream(Session session, URL name)
          Creates a Stream.
protected abstract  Task<StreamFactory,Stream> doCreateStream(TaskMode mode, Session session, URL name)
          Creates a task that creates a Stream.
protected abstract  StreamServer doCreateStreamServer(Session session, URL name)
          Creates a StreamServer.
protected abstract  Task<StreamFactory,StreamServer> doCreateStreamServer(TaskMode mode, Session session, URL name)
          Creates a task that creates a StreamServer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamFactory

public StreamFactory()
Method Detail

doCreateStream

protected abstract Stream doCreateStream(Session session,
                                         URL name)
                                  throws NotImplementedException,
                                         IncorrectURLException,
                                         BadParameterException,
                                         AuthenticationFailedException,
                                         AuthorizationFailedException,
                                         PermissionDeniedException,
                                         TimeoutException,
                                         NoSuccessException
Creates a Stream. To be provided by the implementation.

Parameters:
session - the session handle.
name - location of the stream server.
Returns:
the stream.
Throws:
NotImplementedException
IncorrectURLException
BadParameterException
AuthenticationFailedException
AuthorizationFailedException
PermissionDeniedException
TimeoutException
NoSuccessException

doCreateStreamServer

protected abstract StreamServer doCreateStreamServer(Session session,
                                                     URL name)
                                              throws NotImplementedException,
                                                     IncorrectURLException,
                                                     BadParameterException,
                                                     AuthenticationFailedException,
                                                     AuthorizationFailedException,
                                                     PermissionDeniedException,
                                                     TimeoutException,
                                                     NoSuccessException
Creates a StreamServer. To be provided by the implementation.

Parameters:
session - the session handle.
name - location of the server.
Returns:
the stream server.
Throws:
NotImplementedException
IncorrectURLException
BadParameterException
AuthenticationFailedException
AuthorizationFailedException
PermissionDeniedException
TimeoutException
NoSuccessException

doCreateStream

protected abstract Task<StreamFactory,Stream> doCreateStream(TaskMode mode,
                                                             Session session,
                                                             URL name)
                                                      throws NotImplementedException
Creates a task that creates a Stream. To be provided by the implementation.

Parameters:
mode - the task mode.
session - the session handle.
name - location of the stream server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.

doCreateStreamServer

protected abstract Task<StreamFactory,StreamServer> doCreateStreamServer(TaskMode mode,
                                                                         Session session,
                                                                         URL name)
                                                                  throws NotImplementedException
Creates a task that creates a StreamServer. To be provided by the implementation.

Parameters:
mode - the task mode.
session - the session handle.
name - location of the server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.

createStream

public static Stream createStream(Session session,
                                  URL name)
                           throws NotImplementedException,
                                  IncorrectURLException,
                                  BadParameterException,
                                  AuthenticationFailedException,
                                  AuthorizationFailedException,
                                  PermissionDeniedException,
                                  TimeoutException,
                                  NoSuccessException
Creates a Stream.

Parameters:
session - the session handle.
name - location of the stream server.
Returns:
the stream.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStream

public static Stream createStream(String sagaFactoryClassname,
                                  Session session,
                                  URL name)
                           throws NotImplementedException,
                                  IncorrectURLException,
                                  BadParameterException,
                                  AuthenticationFailedException,
                                  AuthorizationFailedException,
                                  PermissionDeniedException,
                                  TimeoutException,
                                  NoSuccessException
Creates a Stream.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
session - the session handle.
name - location of the stream server.
Returns:
the stream.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStream

public static Stream createStream(URL name)
                           throws NotImplementedException,
                                  IncorrectURLException,
                                  BadParameterException,
                                  AuthenticationFailedException,
                                  AuthorizationFailedException,
                                  PermissionDeniedException,
                                  TimeoutException,
                                  NoSuccessException
Creates a Stream using the default session.

Parameters:
name - location of the stream server.
Returns:
the stream.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStream

public static Stream createStream(String sagaFactoryClassname,
                                  URL name)
                           throws NotImplementedException,
                                  IncorrectURLException,
                                  BadParameterException,
                                  AuthenticationFailedException,
                                  AuthorizationFailedException,
                                  PermissionDeniedException,
                                  TimeoutException,
                                  NoSuccessException
Creates a Stream using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
name - location of the stream server.
Returns:
the stream.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(Session session,
                                              URL name)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer.

Parameters:
session - the session handle.
name - location of the server.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(String sagaFactoryClassname,
                                              Session session,
                                              URL name)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
session - the session handle.
name - location of the server.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(Session session)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer.

Parameters:
session - the session handle.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(String sagaFactoryClassname,
                                              Session session)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
session - the session handle.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(URL name)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer using the default session.

Parameters:
name - location of the stream server.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(String sagaFactoryClassname,
                                              URL name)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
name - location of the stream server.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer()
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer using the default session.

Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStreamServer

public static StreamServer createStreamServer(String sagaFactoryClassname)
                                       throws NotImplementedException,
                                              IncorrectURLException,
                                              BadParameterException,
                                              AuthenticationFailedException,
                                              AuthorizationFailedException,
                                              PermissionDeniedException,
                                              TimeoutException,
                                              NoSuccessException
Creates a StreamServer using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
Returns:
the server.
Throws:
NotImplementedException - is thrown if the implementation does not provide an implementation of this method.
PermissionDeniedException - is thrown when the method failed because the identity used did not have sufficient permissions to perform the operation successfully.
AuthorizationFailedException - is thrown when none of the available contexts of the used session could be used for successful authorization. This error indicates that the resource could not be accessed at all, and not that an operation was not available due to restricted permissions.
AuthenticationFailedException - is thrown when operation failed because none of the available session contexts could successfully be used for authentication.
TimeoutException - is thrown when a remote operation did not complete successfully because the network communication or the remote service timed out.
BadParameterException - is thrown when the specified URL cannot be found.
IncorrectURLException - is thrown if an implementation cannot handle the specified protocol, or that access to the specified entity via the given protocol is impossible.
NoSuccessException - is thrown when the operation was not successfully performed, and none of the other exceptions apply.

createStream

public static Task<StreamFactory,Stream> createStream(TaskMode mode,
                                                      Session session,
                                                      URL name)
                                               throws NotImplementedException,
                                                      NoSuccessException
Creates a task that creates a Stream.

Parameters:
mode - the task mode.
session - the session handle.
name - location of the stream server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStream

public static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname,
                                                      TaskMode mode,
                                                      Session session,
                                                      URL name)
                                               throws NotImplementedException,
                                                      NoSuccessException
Creates a task that creates a Stream.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
session - the session handle.
name - location of the stream server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStream

public static Task<StreamFactory,Stream> createStream(TaskMode mode,
                                                      URL name)
                                               throws NotImplementedException,
                                                      NoSuccessException
Creates a task that creates a Stream using the default session.

Parameters:
mode - the task mode.
name - location of the stream server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.

createStream

public static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname,
                                                      TaskMode mode,
                                                      URL name)
                                               throws NotImplementedException,
                                                      NoSuccessException
Creates a task that creates a Stream using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
name - location of the stream server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode,
                                                                  Session session,
                                                                  URL name)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer.

Parameters:
mode - the task mode.
session - the session handle.
name - location of the server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname,
                                                                  TaskMode mode,
                                                                  Session session,
                                                                  URL name)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
session - the session handle.
name - location of the server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode,
                                                                  Session session)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer.

Parameters:
mode - the task mode.
session - the session handle.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname,
                                                                  TaskMode mode,
                                                                  Session session)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
session - the session handle.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode,
                                                                  URL name)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer using the default session.

Parameters:
mode - the task mode.
name - location of the server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname,
                                                                  TaskMode mode,
                                                                  URL name)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
name - location of the server.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer using the default session.

Parameters:
mode - the task mode.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.

createStreamServer

public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname,
                                                                  TaskMode mode)
                                                           throws NotImplementedException,
                                                                  NoSuccessException
Creates a task that creates a StreamServer using the default session.

Parameters:
sagaFactoryClassname - the class name of the Saga factory to be used.
mode - the task mode.
Returns:
the task.
Throws:
NotImplementedException - is thrown when the task version of this method is not implemented.
NoSuccessException - is thrown when the Saga factory could not be created or when the default session could not be created.


Copyright © 2014 Open Grid Forum. All rights reserved.