|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cluster5.server.managers.UserManager
public class UserManager
Method Summary | |
---|---|
User |
getByToken(java.lang.String token)
|
static UserManager |
getInstance()
|
java.lang.String |
login(java.lang.String loginName,
java.lang.String password)
Loggs the user in if the pair loginName-password is correct. |
void |
logout(java.lang.String token)
Loggs out a user identified by the token. |
void |
recordCpuTime(java.lang.Long userId,
long cpuTime)
Adds CPU time and +1 task to the specified user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UserManager getInstance()
public java.lang.String login(java.lang.String loginName, java.lang.String password)
loginName
- password
-
public void logout(java.lang.String token)
token
- public User getByToken(java.lang.String token)
token
-
public void recordCpuTime(java.lang.Long userId, long cpuTime)
userId
- cpuTime
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |