|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cluster5.server.managers.TerminalManager
public class TerminalManager
Method Summary | |
---|---|
void |
announceTerminalDown(java.lang.Long terminalId)
Announces that a terminal is down. |
java.lang.Long |
announceTerminalUp(Terminal connectingTerminal)
Gets/creates a terminal info, sets new information, sets status to CONNECTED, updates the last seen field to current date and saves it into the database. |
static TerminalManager |
getInstance()
|
void |
recordCpuTime(java.lang.Long terminalId,
long cpuTime)
Records CPU time and number of tasks processed by this terminal. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TerminalManager getInstance()
public java.lang.Long announceTerminalUp(Terminal connectingTerminal)
connectingTerminal
-
public void announceTerminalDown(java.lang.Long terminalId)
terminalId
- public void recordCpuTime(java.lang.Long terminalId, long cpuTime)
terminalId
- cpuTime
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |