Public Member Functions | |
LSDServerInstance (int server_port, boolean compressionserver, boolean compressionclient, String password, boolean[] functions, String name) | |
boolean | isServerOK () |
boolean | startServerInstance () |
void | stopServerInstance (boolean wait) |
String | toString () |
Static Public Member Functions | |
static boolean | isSessionOK (IoSession session) |
static boolean | isLSDCommonSessionOK (IoSession session) |
Public Attributes | |
int | SERVER_PORT = 8080 |
boolean | COMPRESSIONSERVER = false |
boolean | COMPRESSIONCLIENT = false |
String | password = "empty" |
String | name = null |
Protected Attributes | |
ExecutorService | executorSerial = null |
SocketAcceptor | acceptor = null |
InetSocketAddress | inetSocketAddress = null |
LSDDemuxingIoHandler | lsdDemuxingIoHandler = null |
AtomicLong | nbsession = null |
boolean | running = false |
Private Attributes | |
boolean[] | functions |
boolean | isClosed = true |
openlsd.network.server.LSDServerInstance.LSDServerInstance | ( | int | server_port, | |
boolean | compressionserver, | |||
boolean | compressionclient, | |||
String | password, | |||
boolean[] | functions, | |||
String | name | |||
) |
Constructor for one ServerInstance
server_port | the port for the server | |
compressionserver | to set the compression on or off on server's message | |
compressionclient | to set the compression on or off on client's message | |
password | the associated password | |
functions | to set the associated functions | |
name | the associated name |
static boolean openlsd.network.server.LSDServerInstance.isSessionOK | ( | IoSession | session | ) | [static] |
Returns the status of one session attached to this LSI
session |
static boolean openlsd.network.server.LSDServerInstance.isLSDCommonSessionOK | ( | IoSession | session | ) | [static] |
Returns the logical status of one session (legal to continue)
session |
boolean openlsd.network.server.LSDServerInstance.isServerOK | ( | ) |
Returns the status of the server attached to this LSI
boolean openlsd.network.server.LSDServerInstance.startServerInstance | ( | ) |
Start the ServerInstance
void openlsd.network.server.LSDServerInstance.stopServerInstance | ( | boolean | wait | ) |
Stop the ServerInstance
wait | boolean to decide if the Server stop should wait on session already connected to finished normally or not. |
String openlsd.network.server.LSDServerInstance.toString | ( | ) |
ExecutorService openlsd.network.server.LSDServerInstance.executorSerial = null [protected] |
IoAcceptor and other fields for server Executor for Serialization
SocketAcceptor openlsd.network.server.LSDServerInstance.acceptor = null [protected] |
Acceptor
InetSocketAddress openlsd.network.server.LSDServerInstance.inetSocketAddress = null [protected] |
The socket Address
LSDDemuxingIoHandler openlsd.network.server.LSDServerInstance.lsdDemuxingIoHandler = null [protected] |
The default DemuxingIoHandler
The port of the server
boolean openlsd.network.server.LSDServerInstance.COMPRESSIONSERVER = false |
Is this server compresses from Server message
boolean openlsd.network.server.LSDServerInstance.COMPRESSIONCLIENT = false |
Is this server compressed from Client message
String openlsd.network.server.LSDServerInstance.password = "empty" |
The associated password for the server (specific functions to protect)
String openlsd.network.server.LSDServerInstance.name = null |
The name of this server
boolean [] openlsd.network.server.LSDServerInstance.functions [private] |
Initial value:
{false,false,false,false, false,false,false,false,false}
AtomicLong openlsd.network.server.LSDServerInstance.nbsession = null [protected] |
The number of sessions
boolean openlsd.network.server.LSDServerInstance.running = false [protected] |
The status of this server (running true implies isClosed false)
boolean openlsd.network.server.LSDServerInstance.isClosed = true [private] |
Is this server really closed (isClosed true implies running false)