|
|||||||||
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.client.common.LSDClientSession
public class LSDClientSession
Class for the session stored in server and client context.
Field Summary | |
---|---|
byte[] |
bytesfile
Data part |
LSDClientCommon |
lcc
Associated Common Client object |
com.twmacinta.util.MD5 |
md5
MD5 data |
Fields inherited from class openlsd.network.common.message.LSDMinimalSession |
---|
commande, doc, fileblocksize, filesize, isClosed, legacy, object, rankblock, running, session, status, storage, unique |
Constructor Summary | |
---|---|
LSDClientSession(org.apache.mina.common.IoSession session)
Create a LSDClientSession as empty session with the session |
|
LSDClientSession(org.apache.mina.common.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 |
Method Summary | |
---|---|
static LSDClientSession |
assign(LSDClientSession ls,
org.apache.mina.common.IoSession session,
byte commande,
boolean unique,
long legacy,
long storage,
long doc,
byte status,
int fileblocksize,
int rankblock)
Set a new session from previous alloacted object from params if object already exists, else same as new LSDClientSession(...) |
boolean |
sessionStart()
Change the LSDSession in Ready state and Start the session |
void |
sessionStop()
Stop the session (override for poolConnection property) |
Methods inherited from class openlsd.network.common.message.LSDMinimalSession |
---|
clear, clearObject, endedAllBlocks, endNewBlock, getObject, isClosed, isRunning, sessionFinished, setObject, toString, waitForAllBlocks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public byte[] bytesfile
public LSDClientCommon lcc
public com.twmacinta.util.MD5 md5
Constructor Detail |
---|
public LSDClientSession(org.apache.mina.common.IoSession session)
session
- public LSDClientSession(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 boolean sessionStart()
sessionStart
in class LSDMinimalSession
public void sessionStop()
sessionStop
in class LSDMinimalSession
public static LSDClientSession assign(LSDClientSession ls, org.apache.mina.common.IoSession session, byte commande, boolean unique, long legacy, long storage, long doc, byte status, int fileblocksize, int rankblock)
ls
- session
- commande
- unique
- legacy
- storage
- doc
- status
- fileblocksize
- rankblock
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |