openlsd.network.client.common.LSDClientSession.LSDClientSession | ( | IoSession | session | ) |
Create a LSDClientSession as empty session with the session
session |
openlsd.network.client.common.LSDClientSession.LSDClientSession | ( | IoSession | session, | |
byte | commande, | |||
boolean | unique, | |||
long | legacy, | |||
long | storage, | |||
long | doc, | |||
byte | status, | |||
int | fileblocksize, | |||
int | rankblock | |||
) |
Create a LSDClientSession from args but not make it running
session | the IoSession associated | |
commande | the commande | |
unique | set if this commande close the session at the end or not | |
legacy | the lid | |
storage | the sid | |
doc | the did | |
status | the current status | |
fileblocksize | the fileblock size | |
rankblock | the rank of the current block |
boolean openlsd.network.client.common.LSDClientSession.sessionStart | ( | ) |
Change the LSDSession in Ready state and Start the session
Reimplemented from openlsd.network.common.message.LSDMinimalSession.
void openlsd.network.client.common.LSDClientSession.sessionStop | ( | ) |
Stop the session (override for poolConnection property)
Reimplemented from openlsd.network.common.message.LSDMinimalSession.
static LSDClientSession openlsd.network.client.common.LSDClientSession.assign | ( | LSDClientSession | ls, | |
IoSession | session, | |||
byte | commande, | |||
boolean | unique, | |||
long | legacy, | |||
long | storage, | |||
long | doc, | |||
byte | status, | |||
int | fileblocksize, | |||
int | rankblock | |||
) | [static] |
Set a new session from previous alloacted object from params if object already exists, else same as new LSDClientSession(...) except that it starts the session (sessionStart) if it is possible, if not it stops the session (sessionStop).
ls | ||
session | ||
commande | ||
unique | ||
legacy | ||
storage | ||
doc | ||
status | ||
fileblocksize | ||
rankblock |
boolean openlsd.network.common.message.LSDMinimalSession.isClosed | ( | ) | [inherited] |
Returns True if the session is closed
Reimplemented in openlsd.network.server.LSDServerSession.
void openlsd.network.common.message.LSDMinimalSession.sessionFinished | ( | ) | [inherited] |
Stop the current session without closing the connection
boolean openlsd.network.common.message.LSDMinimalSession.isRunning | ( | ) | [inherited] |
Returns the status of the current session
void openlsd.network.common.message.LSDMinimalSession.endNewBlock | ( | ) | [inherited] |
End the current block, and allow the next block to continue
void openlsd.network.common.message.LSDMinimalSession.waitForAllBlocks | ( | ) | [inherited] |
Wait that all blocks are done, so the message is completely received or sent
void openlsd.network.common.message.LSDMinimalSession.endedAllBlocks | ( | ) | [inherited] |
Release the lock, all blocks are considering received or sent.
void openlsd.network.common.message.LSDMinimalSession.setObject | ( | Object | object | ) | [inherited] |
Replace the object or New object for the session
object |
Object openlsd.network.common.message.LSDMinimalSession.getObject | ( | ) | [inherited] |
Get the object from the session
Object openlsd.network.common.message.LSDMinimalSession.clearObject | ( | ) | [inherited] |
clear the object from the session and return the object before clear.
String openlsd.network.common.message.LSDMinimalSession.toString | ( | ) | [inherited] |
void openlsd.network.common.message.LSDMinimalSession.clear | ( | ) | [inherited] |
Clear the session and make it not running but do not eraze session information neither close the session. This function make ready the object for a new action.
Reimplemented in openlsd.network.server.LSDServerSession.
byte [] openlsd.network.client.common.LSDClientSession.bytesfile = null |
Data part
Associated Common Client object
MD5 data
IoSession openlsd.network.common.message.LSDMinimalSession.session = null [inherited] |
IoSession attached with this session object
byte openlsd.network.common.message.LSDMinimalSession.commande = LSDConstants.LSD_NULL [inherited] |
The corresponding command
boolean openlsd.network.common.message.LSDMinimalSession.unique = true [inherited] |
Is this command in a "uniq" mode, that is to say when the command is over, so as the socket session. If false, the socket session is not closed.
long openlsd.network.common.message.LSDMinimalSession.legacy = LSDConstants.invalide_idx [inherited] |
The Legacy
long openlsd.network.common.message.LSDMinimalSession.storage = LSDConstants.invalide_idx [inherited] |
The Storage
long openlsd.network.common.message.LSDMinimalSession.doc = LSDConstants.invalide_idx [inherited] |
The Document
byte openlsd.network.common.message.LSDMinimalSession.status = LSDConstants.LSD_MSG_KOSYSTEM [inherited] |
The Status of the command
int openlsd.network.common.message.LSDMinimalSession.fileblocksize = -1 [inherited] |
The block size for the file
int openlsd.network.common.message.LSDMinimalSession.rankblock = -1 [inherited] |
The block rank for the file
long openlsd.network.common.message.LSDMinimalSession.filesize = -1 [inherited] |
The global file size
Object openlsd.network.common.message.LSDMinimalSession.object = null [inherited] |
Data part of the session: object
boolean openlsd.network.common.message.LSDMinimalSession.running = false [inherited] |
For ending and ordering of received: is this session running (first to change when finishing). Allows to do some stuff between the beginning of closing and the end (was for the Mina bug that allowed two thread for the same socket to run on two different message at the same time).
boolean openlsd.network.common.message.LSDMinimalSession.isClosed = true [inherited] |
For ending and ordering of received: is this session closed (last to change when finishing)