|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamServer
A StreamServer
object represents an endpoint for
a listening/server object that waits for client connections.
Field Summary | |
---|---|
static String |
STREAMSERVER_CLIENTCONNECT
Metric name, fires if a client connects. |
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Method Summary | |
---|---|
void |
close()
Closes a stream server. |
void |
close(float timeoutInSeconds)
Closes a stream server. |
Task<StreamServer,Void> |
close(TaskMode mode)
Obtains a task that closes a stream server. |
Task<StreamServer,Void> |
close(TaskMode mode,
float timeoutInSeconds)
Obtains a task that closes a stream server. |
Stream |
connect()
Establishes a connection to the stream server. |
Stream |
connect(float timeoutInSeconds)
Establishes a connection to the stream server. |
Task<StreamServer,Stream> |
connect(TaskMode mode)
Returns a task that establishes a connection to the stream server. |
Task<StreamServer,Stream> |
connect(TaskMode mode,
float timeoutInSeconds)
Returns a task that establishes a connection to the stream server. |
URL |
getUrl()
Obtains the URL to be used to connect to this server. |
Task<StreamServer,URL> |
getUrl(TaskMode mode)
Obtains a task to obtain the URL to be used to connect to this server. |
Stream |
serve()
Waits for incoming client connections (like an accept of a serversocket). |
Stream |
serve(float timeoutInSeconds)
Waits for incoming client connections (like an accept of a serversocket). |
Task<StreamServer,Stream> |
serve(TaskMode mode)
Obtains a task that waits for incoming client connections (like an accept of a serversocket). |
Task<StreamServer,Stream> |
serve(TaskMode mode,
float timeoutInSeconds)
Obtains a task that waits for incoming client connections (like an accept of a serversocket). |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Methods inherited from interface org.ogf.saga.monitoring.AsyncMonitorable |
---|
addCallback, getMetric, listMetrics, removeCallback |
Methods inherited from interface org.ogf.saga.monitoring.Monitorable |
---|
addCallback, getMetric, listMetrics, removeCallback |
Methods inherited from interface org.ogf.saga.permissions.Permissions |
---|
getGroup, getGroup, getOwner, getOwner, permissionsAllow, permissionsAllow, permissionsCheck, permissionsCheck, permissionsDeny, permissionsDeny |
Field Detail |
---|
static final String STREAMSERVER_CLIENTCONNECT
Method Detail |
---|
URL getUrl() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, 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.
IncorrectStateException
- is thrown when the stream server is already closed.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Stream serve() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, 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.
IncorrectStateException
- is thrown when the stream server is already closed.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Stream connect() throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, 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.
IncorrectStateException
- is thrown when the stream is already closed.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Stream connect(float timeoutInSeconds) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, TimeoutException, NoSuccessException
timeoutInSeconds
- the timeout in seconds.
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.
IncorrectStateException
- is thrown when the stream is already closed.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Stream serve(float timeoutInSeconds) throws NotImplementedException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, IncorrectStateException, TimeoutException, NoSuccessException
timeoutInSeconds
- the timeout in seconds.
null
if the timeout
expires before a client connects.
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.
IncorrectStateException
- is thrown when the stream server is already closed.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void close() throws NotImplementedException, NoSuccessException
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.void close(float timeoutInSeconds) throws NotImplementedException, NoSuccessException
timeoutInSeconds
- the timeout in seconds.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Task<StreamServer,URL> getUrl(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Stream> serve(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Stream> serve(TaskMode mode, float timeoutInSeconds) throws NotImplementedException
mode
- the task mode.timeoutInSeconds
- the timeout in seconds.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Stream> connect(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Stream> connect(TaskMode mode, float timeoutInSeconds) throws NotImplementedException
mode
- the task mode.timeoutInSeconds
- the timeout in seconds.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Void> close(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<StreamServer,Void> close(TaskMode mode, float timeoutInSeconds) throws NotImplementedException
mode
- the task mode.timeoutInSeconds
- the timeout in seconds.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |