|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.csource.fastdfs.StorageClient
org.csource.fastdfs.StorageClient1
public class StorageClient1
Storage client for 1 field file id: combined group name and filename
| 嵌套类摘要 |
|---|
| 从类 org.csource.fastdfs.StorageClient 继承的嵌套类/接口 |
|---|
StorageClient.UploadBuff |
| 字段摘要 | |
|---|---|
static String |
SPLIT_GROUP_NAME_AND_FILENAME_SEPERATOR
|
| 从类 org.csource.fastdfs.StorageClient 继承的字段 |
|---|
base64, errno, storageServer, trackerServer |
| 构造方法摘要 | |
|---|---|
StorageClient1()
constructor |
|
StorageClient1(TrackerServer trackerServer,
StorageServer storageServer)
constructor |
|
| 方法摘要 | |
|---|---|
int |
append_file1(String appender_file_id,
byte[] file_buff)
append file to storage server (by file buff) |
int |
append_file1(String appender_file_id,
byte[] file_buff,
int offset,
int length)
append file to storage server (by file buff) |
int |
append_file1(String appender_file_id,
long file_size,
UploadCallback callback)
append file to storage server (by callback) |
int |
append_file1(String appender_file_id,
String local_filename)
append file to storage server (by file name) |
int |
delete_file1(String file_id)
delete file from storage server |
byte[] |
download_file1(String file_id)
download file from storage server |
int |
download_file1(String file_id,
DownloadCallback callback)
download file from storage server |
byte[] |
download_file1(String file_id,
long file_offset,
long download_bytes)
download file from storage server |
int |
download_file1(String file_id,
long file_offset,
long download_bytes,
DownloadCallback callback)
download file from storage server |
int |
download_file1(String file_id,
long file_offset,
long download_bytes,
String local_filename)
download file from storage server |
int |
download_file1(String file_id,
String local_filename)
download file from storage server |
FileInfo |
get_file_info1(String file_id)
get file info decoded from filename |
NameValuePair[] |
get_metadata1(String file_id)
get all metadata items from storage server |
int |
modify_file1(String appender_file_id,
long file_offset,
byte[] file_buff)
modify appender file to storage server (by file buff) |
int |
modify_file1(String appender_file_id,
long file_offset,
byte[] file_buff,
int buffer_offset,
int buffer_length)
modify appender file to storage server (by file buff) |
int |
modify_file1(String appender_file_id,
long file_offset,
long modify_size,
UploadCallback callback)
modify appender file to storage server (by callback) |
int |
modify_file1(String appender_file_id,
long file_offset,
String local_filename)
modify appender file to storage server (by file name) |
FileInfo |
query_file_info1(String file_id)
get file info from storage server |
int |
set_metadata1(String file_id,
NameValuePair[] meta_list,
byte op_flag)
set metadata items to storage server |
static byte |
split_file_id(String file_id,
String[] results)
|
int |
truncate_file1(String appender_file_id)
truncate appender file to size 0 from storage server |
int |
truncate_file1(String appender_file_id,
long truncated_file_size)
truncate appender file from storage server |
String |
upload_appender_file1(byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
upload appender file to storage server (by file buff) |
String |
upload_appender_file1(String group_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
upload appender file to storage server (by file buff) |
String |
upload_appender_file1(String group_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
upload appender file to storage server (by callback) |
String |
upload_appender_file1(String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
upload appender file to storage server (by file name) |
String |
upload_appender_file1(String group_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
upload appender file to storage server (by file name) |
String |
upload_file1(byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file buff) |
String |
upload_file1(String group_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file buff) |
String |
upload_file1(String group_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by callback) |
String |
upload_file1(String master_file_id,
String prefix_name,
byte[] file_buff,
int offset,
int length,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file buff, slave file mode) |
String |
upload_file1(String master_file_id,
String prefix_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file buff, slave file mode) |
String |
upload_file1(String master_file_id,
String prefix_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by callback) |
String |
upload_file1(String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file name) |
String |
upload_file1(String group_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file name) |
String |
upload_file1(String master_file_id,
String prefix_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
upload file to storage server (by file name, slave file mode) |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String SPLIT_GROUP_NAME_AND_FILENAME_SEPERATOR
| 构造方法详细信息 |
|---|
public StorageClient1()
public StorageClient1(TrackerServer trackerServer,
StorageServer storageServer)
trackerServer - the tracker server, can be nullstorageServer - the storage server, can be null| 方法详细信息 |
|---|
public static byte split_file_id(String file_id,
String[] results)
public String upload_file1(String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
local_filename - local filename to uploadfile_ext_name - file ext name, do not include dot(.), null to extract ext name from the local filenamemeta_list - meta info array
IOException
MyException
public String upload_file1(String group_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptylocal_filename - local filename to uploadfile_ext_name - file ext name, do not include dot(.), null to extract ext name from the local filenamemeta_list - meta info array
IOException
MyException
public String upload_file1(byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
file_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_file1(String group_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptyfile_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_file1(String group_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptyfile_size - the file sizecallback - the write data callback objectfile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_appender_file1(String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
local_filename - local filename to uploadfile_ext_name - file ext name, do not include dot(.), null to extract ext name from the local filenamemeta_list - meta info array
IOException
MyException
public String upload_appender_file1(String group_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptylocal_filename - local filename to uploadfile_ext_name - file ext name, do not include dot(.), null to extract ext name from the local filenamemeta_list - meta info array
IOException
MyException
public String upload_appender_file1(byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
file_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_appender_file1(String group_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptyfile_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_appender_file1(String group_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
group_name - the group name to upload file to, can be emptyfile_size - the file sizecallback - the write data callback objectfile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_file1(String master_file_id,
String prefix_name,
String local_filename,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
master_file_id - the master file id to generate the slave fileprefix_name - the prefix name to generate the slave filelocal_filename - local filename to uploadfile_ext_name - file ext name, do not include dot(.), null to extract ext name from the local filenamemeta_list - meta info array
IOException
MyException
public String upload_file1(String master_file_id,
String prefix_name,
byte[] file_buff,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
master_file_id - the master file id to generate the slave fileprefix_name - the prefix name to generate the slave filefile_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_file1(String master_file_id,
String prefix_name,
byte[] file_buff,
int offset,
int length,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
master_file_id - the master file id to generate the slave fileprefix_name - the prefix name to generate the slave filefile_buff - file content/bufffile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public String upload_file1(String master_file_id,
String prefix_name,
long file_size,
UploadCallback callback,
String file_ext_name,
NameValuePair[] meta_list)
throws IOException,
MyException
master_file_id - the master file id to generate the slave fileprefix_name - the prefix name to generate the slave filefile_size - the file sizecallback - the write data callback objectfile_ext_name - file ext name, do not include dot(.)meta_list - meta info array
IOException
MyException
public int append_file1(String appender_file_id,
String local_filename)
throws IOException,
MyException
appender_file_id - the appender file idlocal_filename - local filename to append
IOException
MyException
public int append_file1(String appender_file_id,
byte[] file_buff)
throws IOException,
MyException
appender_file_id - the appender file idfile_buff - file content/buff
IOException
MyException
public int append_file1(String appender_file_id,
byte[] file_buff,
int offset,
int length)
throws IOException,
MyException
appender_file_id - the appender file idfile_buff - file content/bufferoffset - start offset of the bufferlength - the length of the buffer to append
IOException
MyException
public int append_file1(String appender_file_id,
long file_size,
UploadCallback callback)
throws IOException,
MyException
appender_file_id - the appender file idfile_size - the file sizecallback - the write data callback object
IOException
MyException
public int modify_file1(String appender_file_id,
long file_offset,
String local_filename)
throws IOException,
MyException
appender_file_id - the appender file idfile_offset - the offset of appender filelocal_filename - local filename to append
IOException
MyException
public int modify_file1(String appender_file_id,
long file_offset,
byte[] file_buff)
throws IOException,
MyException
appender_file_id - the appender file idfile_offset - the offset of appender filefile_buff - file content/buff
IOException
MyException
public int modify_file1(String appender_file_id,
long file_offset,
byte[] file_buff,
int buffer_offset,
int buffer_length)
throws IOException,
MyException
appender_file_id - the appender file idfile_offset - the offset of appender filefile_buff - file content/buffbuffer_offset - start offset of the buffbuffer_length - the length of buff to modify
IOException
MyException
public int modify_file1(String appender_file_id,
long file_offset,
long modify_size,
UploadCallback callback)
throws IOException,
MyException
appender_file_id - the appender file idfile_offset - the offset of appender filemodify_size - the modify sizecallback - the write data callback object
IOException
MyException
public int delete_file1(String file_id)
throws IOException,
MyException
file_id - the file id(including group name and filename)
IOException
MyException
public int truncate_file1(String appender_file_id)
throws IOException,
MyException
appender_file_id - the appender file id
IOException
MyException
public int truncate_file1(String appender_file_id,
long truncated_file_size)
throws IOException,
MyException
appender_file_id - the appender file idtruncated_file_size - truncated file size
IOException
MyException
public byte[] download_file1(String file_id)
throws IOException,
MyException
file_id - the file id(including group name and filename)
IOException
MyException
public byte[] download_file1(String file_id,
long file_offset,
long download_bytes)
throws IOException,
MyException
file_id - the file id(including group name and filename)file_offset - the start offset of the filedownload_bytes - download bytes, 0 for remain bytes from offset
IOException
MyException
public int download_file1(String file_id,
String local_filename)
throws IOException,
MyException
file_id - the file id(including group name and filename)local_filename - the filename on local
IOException
MyException
public int download_file1(String file_id,
long file_offset,
long download_bytes,
String local_filename)
throws IOException,
MyException
file_id - the file id(including group name and filename)file_offset - the start offset of the filedownload_bytes - download bytes, 0 for remain bytes from offsetlocal_filename - the filename on local
IOException
MyException
public int download_file1(String file_id,
DownloadCallback callback)
throws IOException,
MyException
file_id - the file id(including group name and filename)callback - the callback object, will call callback.recv() when data arrive
IOException
MyException
public int download_file1(String file_id,
long file_offset,
long download_bytes,
DownloadCallback callback)
throws IOException,
MyException
file_id - the file id(including group name and filename)file_offset - the start offset of the filedownload_bytes - download bytes, 0 for remain bytes from offsetcallback - the callback object, will call callback.recv() when data arrive
IOException
MyException
public NameValuePair[] get_metadata1(String file_id)
throws IOException,
MyException
file_id - the file id(including group name and filename)
IOException
MyException
public int set_metadata1(String file_id,
NameValuePair[] meta_list,
byte op_flag)
throws IOException,
MyException
file_id - the file id(including group name and filename)meta_list - meta item arrayop_flag - flag, can be one of following values: IOException
MyException
public FileInfo query_file_info1(String file_id)
throws IOException,
MyException
file_id - the file id(including group name and filename)
IOException
MyException
public FileInfo get_file_info1(String file_id)
throws IOException,
MyException
file_id - the file id(including group name and filename)
IOException
MyException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||