|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.vlab.management.session.SessionManager
public class SessionManager
Session manager is responsible for managing user rights, checking timeouts. If the session expires the manager will perform the clean up and close the application
Constructor Summary | |
---|---|
SessionManager(SessionError sessionError)
Creates a new instance of SessionManager |
Method Summary | |
---|---|
boolean |
exceptionThrown()
Indicates whether the Long Task has thrown an exception |
java.lang.Exception |
getException()
Each exception which is cought during task execution will be returned by this method. |
int |
getProgress()
Gets the current state of the executed task |
java.lang.Object |
getResult()
Returns an object produced by the executed task. |
int |
getTaskLength()
Gets the length of the task |
boolean |
isDone()
Tells whether am executed task has been completed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManager(SessionError sessionError)
sessionError
- the SessionError object contains the behavior when an
exception occursMethod Detail |
---|
public int getTaskLength()
getTaskLength
in interface LongTask
public int getProgress()
getProgress
in interface LongTask
getTaskLength() is max size
public boolean isDone()
isDone
in interface LongTask
public java.lang.Object getResult()
getResult
in interface LongTask
null
value will be returnedpublic java.lang.Exception getException()
getException
in interface LongTask
public boolean exceptionThrown()
exceptionThrown
in interface LongTask
true
if exception has been thrown,
false
otherwise
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |