|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
A session isolates independent sets of SAGA objects from each other, and supports management of security contexts.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Method Summary | |
---|---|
void |
addContext(Context context)
Attaches a deep copy of the specified security context to the session. |
void |
close()
Closes a SAGA session. |
void |
close(float timeoutInSeconds)
Closes a SAGA session. |
Context[] |
listContexts()
Retrieves all contexts attached to the session. |
void |
removeContext(Context context)
Detaches the specified security context from the session. |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Method Detail |
---|
void addContext(Context context) throws NoSuccessException, TimeoutException
context
- the context to be added.
NoSuccessException
- is thrown when the implementation is not able to initialize
the context, and cannot use the context as-is.
TimeoutException
- is thrown if the context initialization implies a remote operation,
and that operation times out.void removeContext(Context context) throws DoesNotExistException
context
- the context to be removed.
DoesNotExistException
- is thrown when the session does not contain the specified
context.Context[] listContexts()
void close()
void close(float timeoutInSeconds)
timeoutInSeconds
- the timeout in seconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |