|
VLab Common 1.1 | |||||||||
| 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 occurs| Method Detail |
|---|
public int getTaskLength()
getTaskLength in interface LongTaskpublic int getProgress()
getProgress in interface LongTaskgetTaskLength() is max size public boolean isDone()
isDone in interface LongTaskpublic java.lang.Object getResult()
getResult in interface LongTasknull value will be returnedpublic java.lang.Exception getException()
getException in interface LongTaskpublic boolean exceptionThrown()
exceptionThrown in interface LongTasktrue if exception has been thrown,
false otherwise
|
VLab Common 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||