|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RPC
The RPC
class represents a remote function handle that can be
called repeatedly.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Method Summary | |
---|---|
void |
call(Parameter... parameters)
Calls the remote procedure. |
Task<RPC,Void> |
call(TaskMode mode,
Parameter... parameters)
Creates a task for calling the remote procedure. |
void |
close()
Non-blocking close of the RPC handle instance. |
void |
close(float timeoutInSeconds)
Closes the RPC handle instance. |
Task<RPC,Void> |
close(TaskMode mode)
Creates a task for closing the RPC handle instance. |
Task<RPC,Void> |
close(TaskMode mode,
float timeoutInSeconds)
Creates a task for closing the RPC handle instance. |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Methods inherited from interface org.ogf.saga.permissions.Permissions |
---|
getGroup, getGroup, getOwner, getOwner, permissionsAllow, permissionsAllow, permissionsCheck, permissionsCheck, permissionsDeny, permissionsDeny |
Method Detail |
---|
void call(Parameter... parameters) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, DoesNotExistException, TimeoutException, NoSuccessException
parameters
- arguments and results for the call.
IncorrectURLException
- may be thrown here because the RPC server that was
specified to the factory may not have been contacted
before invoking the call.
NoSuccessException
- is thrown for arbitrary backend failures, with a
descriptive error message.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
BadParameterException
- is thrown when at least one of the parameters of the method
call is ill-formed, invalid, out of bounds or otherwise not
usable, or if the RPC server cannot be found.
DoesNotExistException
- is thrown when an operation cannot succeed because the RPC server
does not recognize the specified method.
IncorrectStateException
- is thrown when the object is already closed.
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.void close() throws NotImplementedException, IncorrectStateException, NoSuccessException
NoSuccessException
- is thrown for arbitrary backend failures, with a
descriptive error message.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
IncorrectStateException
- is in the SAGA specifications, but is not thrown when the object
is already closed.void close(float timeoutInSeconds) throws NotImplementedException, IncorrectStateException, NoSuccessException
timeoutInSeconds
- seconds to wait.
NoSuccessException
- is thrown for arbitrary backend failures, with a
descriptive error message.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
IncorrectStateException
- is in the SAGA specifications, but is not thrown when the object
is already closed.Task<RPC,Void> call(TaskMode mode, Parameter... parameters) throws NotImplementedException
mode
- the task mode.parameters
- arguments and results for the call.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<RPC,Void> close(TaskMode mode) throws NotImplementedException
mode
- the task mode.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<RPC,Void> close(TaskMode mode, float timeoutInSeconds) throws NotImplementedException
mode
- the task mode.timeoutInSeconds
- seconds to wait.
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 |