|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.saga.stream.StreamFactory
public abstract class StreamFactory
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 |
---|
public StreamFactory()
Method Detail |
---|
protected abstract Stream doCreateStream(Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
session
- the session handle.name
- location of the stream server.
NotImplementedException
IncorrectURLException
BadParameterException
AuthenticationFailedException
AuthorizationFailedException
PermissionDeniedException
TimeoutException
NoSuccessException
protected abstract StreamServer doCreateStreamServer(Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
session
- the session handle.name
- location of the server.
NotImplementedException
IncorrectURLException
BadParameterException
AuthenticationFailedException
AuthorizationFailedException
PermissionDeniedException
TimeoutException
NoSuccessException
protected abstract Task<StreamFactory,Stream> doCreateStream(TaskMode mode, Session session, URL name) throws NotImplementedException
mode
- the task mode.session
- the session handle.name
- location of the stream server.
NotImplementedException
- is thrown when the task version of this method is not
implemented.protected abstract Task<StreamFactory,StreamServer> doCreateStreamServer(TaskMode mode, Session session, URL name) throws NotImplementedException
mode
- the task mode.session
- the session handle.name
- location of the server.
NotImplementedException
- is thrown when the task version of this method is not
implemented.public static Stream createStream(Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
session
- the session handle.name
- location of the stream server.
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.public static Stream createStream(String sagaFactoryClassname, Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.session
- the session handle.name
- location of the stream server.
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.public static Stream createStream(URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
name
- location of the stream server.
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.public static Stream createStream(String sagaFactoryClassname, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.name
- location of the stream server.
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.public static StreamServer createStreamServer(Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
session
- the session handle.name
- location of the server.
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.public static StreamServer createStreamServer(String sagaFactoryClassname, Session session, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.session
- the session handle.name
- location of the server.
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.public static StreamServer createStreamServer(Session session) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
session
- the session handle.
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.public static StreamServer createStreamServer(String sagaFactoryClassname, Session session) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.session
- the session handle.
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.public static StreamServer createStreamServer(URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
name
- location of the stream server.
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.public static StreamServer createStreamServer(String sagaFactoryClassname, URL name) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.name
- location of the stream server.
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.public static StreamServer createStreamServer() throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
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.public static StreamServer createStreamServer(String sagaFactoryClassname) throws NotImplementedException, IncorrectURLException, BadParameterException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.
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.public static Task<StreamFactory,Stream> createStream(TaskMode mode, Session session, URL name) throws NotImplementedException, NoSuccessException
mode
- the task mode.session
- the session handle.name
- location of the stream server.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname, TaskMode mode, Session session, URL name) throws NotImplementedException, NoSuccessException
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.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,Stream> createStream(TaskMode mode, URL name) throws NotImplementedException, NoSuccessException
mode
- the task mode.name
- location of the stream server.
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.public static Task<StreamFactory,Stream> createStream(String sagaFactoryClassname, TaskMode mode, URL name) throws NotImplementedException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.mode
- the task mode.name
- location of the stream server.
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.public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, Session session, URL name) throws NotImplementedException, NoSuccessException
mode
- the task mode.session
- the session handle.name
- location of the server.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, Session session, URL name) throws NotImplementedException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.mode
- the task mode.session
- the session handle.name
- location of the server.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, Session session) throws NotImplementedException, NoSuccessException
mode
- the task mode.session
- the session handle.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, Session session) throws NotImplementedException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.mode
- the task mode.session
- the session handle.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
NoSuccessException
- is thrown when the Saga factory could not be created.public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode, URL name) throws NotImplementedException, NoSuccessException
mode
- the task mode.name
- location of the server.
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.public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode, URL name) throws NotImplementedException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.mode
- the task mode.name
- location of the server.
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.public static Task<StreamFactory,StreamServer> createStreamServer(TaskMode mode) throws NotImplementedException, NoSuccessException
mode
- the task mode.
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.public static Task<StreamFactory,StreamServer> createStreamServer(String sagaFactoryClassname, TaskMode mode) throws NotImplementedException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.mode
- the task mode.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |