public class Const extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
static int |
HeaderSize |
static int |
MAX_CONN_EACH_STORAGE_SERVER |
static String |
MD5_REGEX |
static int |
O_CONNECT |
static int |
O_DOWNLOAD_FILE |
static int |
O_PULL_NEW_FILES |
static int |
O_QUERY_FILE |
static int |
O_REG_FILE |
static int |
O_REG_STORAGE |
static int |
O_RESPONSE |
static int |
O_SYNC_MEMBERS |
static int |
O_SYNC_STORAGE |
static int |
O_UPLOAD |
static String |
PATH_REGEX |
static int |
STATUS_BAD_SECRET |
static int |
STATUS_INTERNAL_SERVER_ERROR |
static int |
STATUS_NOT_FOUND |
static int |
STATUS_OK |
static int |
STATUS_OPERATION_NOT_SUPPORT |
| Constructor and Description |
|---|
Const() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsOperationCode(int operation) |
static int |
getOperationByHeadBytes(byte[] op) |
static byte[] |
getOperationHeadBytes(int operation) |
static IPool |
getPool() |
static void |
initPool(ClientConfigurationBean configuration)
initial connection pool.
|
public static final int STATUS_OK
public static final int STATUS_BAD_SECRET
public static final int STATUS_OPERATION_NOT_SUPPORT
public static final int STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_NOT_FOUND
public static final int O_CONNECT
public static final int O_RESPONSE
public static final int O_QUERY_FILE
public static final int O_DOWNLOAD_FILE
public static final int O_REG_STORAGE
public static final int O_REG_FILE
public static final int O_SYNC_STORAGE
public static final int O_PULL_NEW_FILES
public static final int O_UPLOAD
public static final int O_SYNC_MEMBERS
public static final int HeaderSize
public static final String PATH_REGEX
public static final String MD5_REGEX
public static final int MAX_CONN_EACH_STORAGE_SERVER
public static final int BUFFER_SIZE
public static boolean containsOperationCode(int operation)
public static byte[] getOperationHeadBytes(int operation)
public static int getOperationByHeadBytes(byte[] op)
public static void initPool(ClientConfigurationBean configuration)
configuration - public static IPool getPool()
Copyright © 2018. All rights reserved.