|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.network.common.message.LSDMinimalSession openlsd.network.server.LSDServerSession
public class LSDServerSession
Class for the session stored in server context.
Field Summary | |
---|---|
protected com.twmacinta.util.MD5 |
md5
The md5 associated with the server session |
protected boolean |
wasException
Was this session in exception ? |
protected boolean |
wasIdle
Was this session Idle ? |
Fields inherited from class openlsd.network.common.message.LSDMinimalSession |
---|
commande, doc, fileblocksize, filesize, isClosed, legacy, object, rankblock, running, session, status, storage, unique |
Constructor Summary | |
---|---|
LSDServerSession(org.apache.mina.common.IoSession session)
Create a LSDServerSession as empty session from a session |
|
LSDServerSession(org.apache.mina.common.IoSession session,
byte commande,
boolean unique,
long legacy,
long storage,
long doc,
byte status,
int fileblocksize,
int rankblock)
Create a LSDServerSession from args but not make it running |
Method Summary | |
---|---|
static LSDServerSession |
assign(LSDServerSession ls,
org.apache.mina.common.IoSession session,
byte commande,
boolean unique,
long legacy,
long storage,
long doc)
Set a new session from previous alloacted object from params if object already exists, else same as new LSDServerSession(...) |
void |
clear()
Clear the session and make it not running but do not eraze session information neither close the session. |
boolean |
isClosed()
Returns True if the session is closed |
boolean |
sessionStart()
Start the session |
void |
sessionStop()
Stop the session. |
void |
sessionStopNoClose()
Stop the session but not close the connection (client will do first). |
protected void |
sessionTaskClose()
Task for ending one true session |
java.lang.String |
toString()
|
Methods inherited from class openlsd.network.common.message.LSDMinimalSession |
---|
clearObject, endedAllBlocks, endNewBlock, getObject, isRunning, sessionFinished, setObject, waitForAllBlocks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected com.twmacinta.util.MD5 md5
protected boolean wasIdle
protected boolean wasException
Constructor Detail |
---|
public LSDServerSession(org.apache.mina.common.IoSession session)
session
- public LSDServerSession(org.apache.mina.common.IoSession session, byte commande, boolean unique, long legacy, long storage, long doc, byte status, int fileblocksize, int rankblock)
session
- the IoSession associatedcommande
- the commandeunique
- set if this commande close the session at the end or notlegacy
- the lidstorage
- the siddoc
- the didstatus
- the current statusfileblocksize
- the fileblock sizerankblock
- the rank of the current blockMethod Detail |
---|
public void sessionStop()
sessionStop
in class LSDMinimalSession
public void sessionStopNoClose()
protected void sessionTaskClose()
public boolean sessionStart()
sessionStart
in class LSDMinimalSession
public boolean isClosed()
isClosed
in class LSDMinimalSession
public static LSDServerSession assign(LSDServerSession ls, org.apache.mina.common.IoSession session, byte commande, boolean unique, long legacy, long storage, long doc)
ls
- session
- commande
- unique
- legacy
- storage
- doc
-
public void clear()
clear
in class LSDMinimalSession
public java.lang.String toString()
toString
in class LSDMinimalSession
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |