|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.elvyx.server.Server
com.elvyx.server.Elvyx
public class Elvyx
Elvyx server. This server receive the commands from elvyx and store data received into hsqldb.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class com.elvyx.server.Server |
|---|
properties |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
|---|---|
void |
changeDao(DatabaseType database)
Change DAO |
static java.lang.Integer |
getClientId()
TODO: Why client id |
static Dao |
getDao()
Return the DAO reference |
static java.lang.Long |
getElvyxId()
Return the server id |
ElvyxState |
getElvyxState()
Return the elvyx state. |
static Elvyx |
getInstance()
Return the elvyx reference |
static void |
main(java.lang.String[] args)
Run the elvyx server. |
void |
setId(java.lang.Long id)
Set id. |
void |
startServer()
Start the elvyx server |
void |
stopServer(java.lang.Long id)
Stop the elvyx server. |
void |
stopServer(java.lang.String host,
java.lang.Integer port,
java.lang.Long id)
Stop the elvyx server. |
| Methods inherited from class com.elvyx.server.Server |
|---|
close, getPort, getServerSocket, init, loadProperties, processRequest, run, saveProperties, sendStop, setPort |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Elvyx getInstance()
public static Dao getDao()
public static java.lang.Integer getClientId()
public void startServer()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public void stopServer(java.lang.String host,
java.lang.Integer port,
java.lang.Long id)
throws java.sql.SQLException
java.sql.SQLException
public void stopServer(java.lang.Long id)
throws java.sql.SQLException
java.sql.SQLException
public void changeDao(DatabaseType database)
throws java.io.IOException,
java.sql.SQLException
DatabaseType -
java.io.IOException
java.sql.SQLExceptionpublic ElvyxState getElvyxState()
public static java.lang.Long getElvyxId()
public void setId(java.lang.Long id)
public static void main(java.lang.String[] args)
args - The arguments could be start: start Start the server stop Stop the server restart
restart the server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||