|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.network.server.LSDServer
public class LSDServer
Main body for the Server part
Field Summary | |
---|---|
protected static boolean |
isUp
Status if the server is still up |
protected static java.util.concurrent.ConcurrentHashMap<java.lang.Long,LSDLegacy> |
LegacyHMap
Map for all Legacy defined in the config file |
protected static LSDServerInstance[] |
LSI
ServerInstances Admin(0),User(1),UserComp(2),Protected(3) |
static LSDServerHttpIoHandler |
serverHttpIoHandler
HTTP Service |
protected static boolean |
shutdown
Status if the server is globally going down |
Method Summary | |
---|---|
static boolean |
isAdminRunning()
Get the status of the Admin server |
static boolean |
isPasswdAdmin(java.lang.String passwd)
Check the password for Admin |
static boolean |
isPasswdProtected(java.lang.String passwd)
Check the password for Protected |
static boolean |
isProtectedRunning()
Get the status of the Protected server |
static boolean |
isUserCompRunning()
Get the status of the User server with compression |
static boolean |
isUserRunning()
Get the status of the User server |
static void |
main(java.lang.String[] args)
Main body : read the XML config file, then starts the servers |
protected static boolean |
startProtected()
Start the Server for Protected |
protected static boolean |
startUser()
Start the Server for User without compression |
protected static boolean |
startUserComp()
Start the Server for User with compression |
protected static void |
stopAdmin(boolean wait)
Stop the Server for Admin |
protected static void |
stopProtected(boolean wait)
Stop the Server for Protected |
protected static void |
stopUser(boolean wait)
Stop the Server for User without compression |
protected static void |
stopUserComp(boolean wait)
Stop the Server for User with compression |
static void |
terminate()
Terminate in case of Signal or Big error ! |
static void |
terminate(boolean exit)
Terminate in case of Signal or Big error ! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static LSDServerInstance[] LSI
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.Long,LSDLegacy> LegacyHMap
protected static boolean shutdown
protected static boolean isUp
public static LSDServerHttpIoHandler serverHttpIoHandler
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- is the filename of the XML config filepublic static void terminate(boolean exit)
exit
- If True, will call System.exitpublic static void terminate()
protected static boolean startUser()
protected static boolean startUserComp()
protected static boolean startProtected()
protected static void stopUser(boolean wait)
wait
- boolean to decide if the Server stop
should wait on session already
connected to finished normally or not.protected static void stopUserComp(boolean wait)
wait
- boolean to decide if the Server stop
should wait on session already
connected to finished normally or not.protected static void stopProtected(boolean wait)
wait
- boolean to decide if the Server stop
should wait on session already
connected to finished normally or not.protected static void stopAdmin(boolean wait)
wait
- boolean to decide if the Server stop
should wait on session already
connected to finished normally or not.public static boolean isAdminRunning()
public static boolean isUserRunning()
public static boolean isUserCompRunning()
public static boolean isProtectedRunning()
public static boolean isPasswdAdmin(java.lang.String passwd)
passwd
-
public static boolean isPasswdProtected(java.lang.String passwd)
passwd
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |