|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.network.client.common.LSDClientCommon openlsd.network.client.info.LSDClientInfo
public class LSDClientInfo
Class LSDClientInfo is the class that defines function to offer service to client part for Info.
Field Summary | |
---|---|
java.lang.String |
md5
MD5 Data |
long |
size
Size of the file |
Fields inherited from class openlsd.network.client.common.LSDClientCommon |
---|
clientCompressed, connector, executorChainService, hostname, idip, ls, lscsh, poolConnection, serverCompressed, serverPort, session |
Constructor Summary | |
---|---|
LSDClientInfo(LSDClientInfoSessionHandler lscshext,
java.lang.String Hostname,
int ServerPort,
boolean ServerCompressed,
boolean ClientCompressed,
boolean immediate,
boolean keepalived)
Create a new ClientInfo using a specific SessionHandler that extends the LSDClientInfoSessionHandler class and a specific Hostname and serverPort and the properties of compression for server and client part. |
|
LSDClientInfo(java.lang.String Hostname,
int ServerPort,
boolean immediate,
boolean keepalived)
Create a new ClientInfo using a specific Hostname and serverPort. |
|
LSDClientInfo(java.lang.String Hostname,
int ServerPort,
boolean ServerCompressed,
boolean ClientCompressed,
boolean immediate,
boolean keepalived)
Create a new ClientInfo using a specific Hostname and serverPort and the properties of compression for server and client part. |
Method Summary | |
---|---|
protected LSDClientCommonSessionHandler |
createSessionHandler()
Create a SessionHandler. |
int |
getAExist(boolean unique,
java.lang.String aexist,
LSDAdminAndVector adm_vect)
Get the status of files from DB (lid,sid,did) in lsd. |
int |
getAExistMD5(boolean unique,
java.lang.String aexist,
LSDAdminAndVector adm_vect)
Get the status of files from DB (lid,sid,did,md5) in lsd. |
boolean |
getExist(boolean unique,
long legacy,
long storage,
long document,
java.lang.String md5b)
Ask to get the existence of the file identified by the triple legacy, storage and document, and return true if it exists, no if not or if an error occurs. |
java.lang.String |
getInPath(boolean unique,
long legacy,
long storage,
long document)
Ask to get a copy of the file identified by the triple legacy, storage and document, and return the path if it exists, null if not or if an error occurs. |
int |
getList(boolean unique,
long legacy,
LSDAdminAndVector adm_vect)
Get the list of files (sid,did) under the legacy and would be compared with the DB (with extension of the class LSDClientGetSessionHandler). |
int |
getListMD5(boolean unique,
long legacy,
LSDAdminAndVector adm_vect)
Get the list of files (sid,did,md5) under the legacy and would be compared with the DB (with extension of the class LSDClientGetSessionHandler). |
int |
getSessionInfo(boolean unique)
Get the list of sessions (name,remoteAddress,CreationTimeMs,LastReadTimeMs,LastWriteTimeMs, NbReadMsg,NbWriteMsg,isIdle,isConnected,isClosing,Command[,Status,Running,isClosed, unique,legacy,storage,document] if Command ! |
long |
getSize(boolean unique,
long legacy,
long storage,
long document)
Ask to get Size file identified by the triple legacy, storage and document, and return the result. |
Methods inherited from class openlsd.network.client.common.LSDClientCommon |
---|
clear, clearObject, close, connect, connectionJoin, endClient, endClient, executorsClose, getObject, getStatus, initClient, initShared, isConnected, isSessionOK, lock, realClose, sessionReconnect, setObject, toString, unlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String md5
public long size
Constructor Detail |
---|
public LSDClientInfo(java.lang.String Hostname, int ServerPort, boolean immediate, boolean keepalived)
Hostname
- ServerPort
- immediate
- keepalived
- public LSDClientInfo(java.lang.String Hostname, int ServerPort, boolean ServerCompressed, boolean ClientCompressed, boolean immediate, boolean keepalived)
Hostname
- ServerPort
- ServerCompressed
- ClientCompressed
- immediate
- keepalived
- public LSDClientInfo(LSDClientInfoSessionHandler lscshext, java.lang.String Hostname, int ServerPort, boolean ServerCompressed, boolean ClientCompressed, boolean immediate, boolean keepalived)
lscshext
- Hostname
- ServerPort
- ServerCompressed
- ClientCompressed
- immediate
- keepalived
- Method Detail |
---|
protected LSDClientCommonSessionHandler createSessionHandler()
createSessionHandler
in class LSDClientCommon
public long getSize(boolean unique, long legacy, long storage, long document)
unique
- legacy
- storage
- document
-
public boolean getExist(boolean unique, long legacy, long storage, long document, java.lang.String md5b)
unique
- legacy
- storage
- document
- md5b
- (optional)
public java.lang.String getInPath(boolean unique, long legacy, long storage, long document)
unique
- legacy
- storage
- document
-
public int getList(boolean unique, long legacy, LSDAdminAndVector adm_vect)
unique
- legacy
- adm_vect
- (must be an LSDDbAdminAndVector object)
public int getListMD5(boolean unique, long legacy, LSDAdminAndVector adm_vect)
unique
- legacy
- adm_vect
- (must be an LSDDbAdminAndVector object)
public int getAExist(boolean unique, java.lang.String aexist, LSDAdminAndVector adm_vect)
unique
- aexist
- adm_vect
- (must be an LSDDbAdminAndVector object)
public int getAExistMD5(boolean unique, java.lang.String aexist, LSDAdminAndVector adm_vect)
unique
- aexist
- adm_vect
- (must be an LSDDbAdminAndVector object)
public int getSessionInfo(boolean unique)
unique
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |