openlsd.network.server.LSDServer Class Reference

Collaboration diagram for openlsd.network.server.LSDServer:

Collaboration graph
[legend]

List of all members.


Detailed Description

Main body for the Server part

Author:
Frederic Bregier LGPL

Static Public Member Functions

static void main (String[] args)
static void terminate (boolean exit)
static void terminate ()
static boolean isAdminRunning ()
static boolean isUserRunning ()
static boolean isUserCompRunning ()
static boolean isProtectedRunning ()
static boolean isPasswdAdmin (String passwd)
static boolean isPasswdProtected (String passwd)

Static Public Attributes

static LSDServerHttpIoHandler serverHttpIoHandler = null

Static Protected Member Functions

static boolean startUser ()
static boolean startUserComp ()
static boolean startProtected ()
static void stopUser (boolean wait)
static void stopUserComp (boolean wait)
static void stopProtected (boolean wait)
static void stopAdmin (boolean wait)

Static Protected Attributes

static LSDServerInstance[] LSI = null
static final ConcurrentHashMap
< Long, LSDLegacy
LegacyHMap
static boolean shutdown = false
static boolean isUp = true

Private Member Functions

 LSDServer ()
void setMINAGC ()
boolean startAdmin ()

Static Private Member Functions

static void initSignalHandler ()

Static Private Attributes

static Thread hook = null

Constructor & Destructor Documentation

openlsd.network.server.LSDServer.LSDServer (  )  [private]

Constructor for LSDServer


Member Function Documentation

static void openlsd.network.server.LSDServer.main ( String[]  args  )  [static]

Main body : read the XML config file, then starts the servers

Parameters:
args is the filename of the XML config file

static void openlsd.network.server.LSDServer.terminate ( boolean  exit  )  [static]

Terminate in case of Signal or Big error !

Parameters:
exit If True, will call System.exit

static void openlsd.network.server.LSDServer.terminate (  )  [static]

Terminate in case of Signal or Big error !

static void openlsd.network.server.LSDServer.initSignalHandler (  )  [static, private]

Signal Handler initialization: enables a better shutdown of socket

void openlsd.network.server.LSDServer.setMINAGC (  )  [private]

Defined the allocator policy for MINA

boolean openlsd.network.server.LSDServer.startAdmin (  )  [private]

Start the Server for Admin

Returns:
True if OK, else False

static boolean openlsd.network.server.LSDServer.startUser (  )  [static, protected]

Start the Server for User without compression

Returns:
True if OK, else False

static boolean openlsd.network.server.LSDServer.startUserComp (  )  [static, protected]

Start the Server for User with compression

Returns:
True if OK, else False

static boolean openlsd.network.server.LSDServer.startProtected (  )  [static, protected]

Start the Server for Protected

Returns:
True if OK, else False

static void openlsd.network.server.LSDServer.stopUser ( boolean  wait  )  [static, protected]

Stop the Server for User without compression

Parameters:
wait boolean to decide if the Server stop should wait on session already connected to finished normally or not.

static void openlsd.network.server.LSDServer.stopUserComp ( boolean  wait  )  [static, protected]

Stop the Server for User with compression

Parameters:
wait boolean to decide if the Server stop should wait on session already connected to finished normally or not.

static void openlsd.network.server.LSDServer.stopProtected ( boolean  wait  )  [static, protected]

Stop the Server for Protected

Parameters:
wait boolean to decide if the Server stop should wait on session already connected to finished normally or not.

static void openlsd.network.server.LSDServer.stopAdmin ( boolean  wait  )  [static, protected]

Stop the Server for Admin

Parameters:
wait boolean to decide if the Server stop should wait on session already connected to finished normally or not.

static boolean openlsd.network.server.LSDServer.isAdminRunning (  )  [static]

Get the status of the Admin server

Returns:
the status of the Admin server

static boolean openlsd.network.server.LSDServer.isUserRunning (  )  [static]

Get the status of the User server

Returns:
the status of the User server

static boolean openlsd.network.server.LSDServer.isUserCompRunning (  )  [static]

Get the status of the User server with compression

Returns:
the status of the User with compression server

static boolean openlsd.network.server.LSDServer.isProtectedRunning (  )  [static]

Get the status of the Protected server

Returns:
the status of the Protected server

static boolean openlsd.network.server.LSDServer.isPasswdAdmin ( String  passwd  )  [static]

Check the password for Admin

Parameters:
passwd 
Returns:
if the password is ok

static boolean openlsd.network.server.LSDServer.isPasswdProtected ( String  passwd  )  [static]

Check the password for Protected

Parameters:
passwd 
Returns:
if the password is ok


Member Data Documentation

ServerInstances Admin(0),User(1),UserComp(2),Protected(3)

final ConcurrentHashMap<Long,LSDLegacy> openlsd.network.server.LSDServer.LegacyHMap [static, protected]

Initial value:

 
        new ConcurrentHashMap<Long,LSDLegacy>()
Map for all Legacy defined in the config file

boolean openlsd.network.server.LSDServer.shutdown = false [static, protected]

Status if the server is globally going down

boolean openlsd.network.server.LSDServer.isUp = true [static, protected]

Status if the server is still up

HTTP Service

Thread openlsd.network.server.LSDServer.hook = null [static, private]

Handler for Signal


The documentation for this class was generated from the following file: