|
|||||||||
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.admin.LSDClientAdmin
public class LSDClientAdmin
Class LSDClientAdmin is the class that defines function to offer service to client part for Admin.
Field Summary |
---|
Fields inherited from class openlsd.network.client.common.LSDClientCommon |
---|
clientCompressed, connector, executorChainService, hostname, idip, ls, lscsh, poolConnection, serverCompressed, serverPort, session |
Constructor Summary | |
---|---|
LSDClientAdmin(java.lang.String Hostname,
int ServerPort,
boolean immediate,
boolean keepalived)
Create a new ClientAdmin using a specific Hostname and serverPort. |
|
LSDClientAdmin(java.lang.String Hostname,
int ServerPort,
boolean ServerCompressed,
boolean ClientCompressed,
boolean immediate,
boolean keepalived)
Create a new ClientAdmin using a specific Hostname and serverPort and the properties of compression for server and client part. |
Method Summary | |
---|---|
int |
createDirectory(java.lang.String key,
boolean unique,
long legacy,
long storage)
Ask to create the directory for a legacy, and eventually up to the specified storage. |
protected LSDClientCommonSessionHandler |
createSessionHandler()
Create a SessionHandler. |
int |
deleteDirectory(java.lang.String key,
boolean unique,
long legacy,
long storage,
boolean recursive)
Ask to delete the directory for a legacy, and eventually up to the specified storage. |
int |
enableLegacy(java.lang.String key,
boolean unique,
long legacy,
boolean enable)
Ask to enable/disable a legacy for some operations like put/del (move is still allow since this kind of disable is intend for moving files). |
int |
shutdown(java.lang.String key,
boolean immediat)
Ask to shutdown the server (with the opion immediat or not). |
int |
startServer(java.lang.String key,
boolean unique,
int server,
int action)
Ask to start/stop a server (server 1 = User, 2 = UserCompressed, 3 = Protected). |
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 |
Constructor Detail |
---|
public LSDClientAdmin(java.lang.String Hostname, int ServerPort, boolean immediate, boolean keepalived)
Hostname
- ServerPort
- immediate
- keepalived
- public LSDClientAdmin(java.lang.String Hostname, int ServerPort, boolean ServerCompressed, boolean ClientCompressed, boolean immediate, boolean keepalived)
Hostname
- ServerPort
- ServerCompressed
- ClientCompressed
- immediate
- keepalived
- Method Detail |
---|
protected LSDClientCommonSessionHandler createSessionHandler()
createSessionHandler
in class LSDClientCommon
public int enableLegacy(java.lang.String key, boolean unique, long legacy, boolean enable)
key
- unique
- legacy
- enable
- (true if to enable, false if to disable)
public int startServer(java.lang.String key, boolean unique, int server, int action)
key
- unique
- server
- action
- (0 if to stop, 1 if to start, 2 if to restart)
public int shutdown(java.lang.String key, boolean immediat)
key
- immediat
- (true if to do without waiting current
sessions, false if to do with waiting all sessions to finish)
public int createDirectory(java.lang.String key, boolean unique, long legacy, long storage)
key
- unique
- legacy
- storage
-
public int deleteDirectory(java.lang.String key, boolean unique, long legacy, long storage, boolean recursive)
key
- unique
- legacy
- storage
- recursive
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |