public class FastFDSClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
META_FILE_NAME |
| 构造器和说明 |
|---|
FastFDSClient(TrackerGroup trackerGroup) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteFile(FileLocation location) |
void |
deleteFile(String group,
String fileName) |
void |
downloadFile(FileLocation location,
OutputStream outputStream) |
void |
downloadFile(String group,
String fileName,
OutputStream outputStream) |
void |
downloadFile(String group,
String fileName,
OutputStream outputStream,
long offset,
long length) |
FileSummary |
getFileSummary(FileLocation location) |
FileSummary |
getFileSummary(String group,
String fileName) |
void |
updateFileSummary(FileLocation location,
FileSummary fileSummary) |
FileLocation |
uploadFile(InputStream inputStream,
String local_filename,
long size,
Map<String,String> metaInfo) |
FileLocation |
uploadFile(InputStream inputStream,
String local_filename,
long size,
Map<String,String> metaInfo,
String group) |
FileLocation |
uploadFile(InputStream inputStream,
String local_filename,
long size,
String group) |
FileLocation |
uploadFile(InputStream inputStream,
String local_filename,
String group) |
FileLocation |
uploadFile(InputStream inputStream,
String local_filename,
String file_ext_name,
long size,
Map<String,String> meta_list,
String group)
上传一个流
|
FileLocation |
uploadFile(String filePath)
上传一个本地文件
|
FileLocation |
uploadFile(String filePath,
String group) |
public FastFDSClient(TrackerGroup trackerGroup)
public FileLocation uploadFile(String filePath) throws IOException, MyException
filePath - IOExceptionMyExceptionpublic FileLocation uploadFile(String filePath, String group) throws IOException, MyException
public FileLocation uploadFile(InputStream inputStream, String local_filename, String group) throws IOException, MyException
public FileLocation uploadFile(InputStream inputStream, String local_filename, long size, String group) throws IOException, MyException
inputStream - local_filename - 文件名size - 文件大小IOExceptionMyExceptionpublic FileLocation uploadFile(InputStream inputStream, String local_filename, long size, Map<String,String> metaInfo) throws IOException, MyException
inputStream - local_filename - size - metaInfo - IOExceptionMyExceptionpublic FileLocation uploadFile(InputStream inputStream, String local_filename, long size, Map<String,String> metaInfo, String group) throws IOException, MyException
public FileLocation uploadFile(InputStream inputStream, String local_filename, String file_ext_name, long size, Map<String,String> meta_list, String group) throws IOException, MyException
inputStream - local_filename - file_ext_name - size - meta_list - IOExceptionMyExceptionpublic FileSummary getFileSummary(String group, String fileName) throws IOException, MyException
public FileSummary getFileSummary(FileLocation location) throws IOException, MyException
public void downloadFile(FileLocation location, OutputStream outputStream) throws IOException, MyException
public void downloadFile(String group, String fileName, OutputStream outputStream) throws IOException, MyException
public void downloadFile(String group, String fileName, OutputStream outputStream, long offset, long length) throws IOException, MyException
public void deleteFile(FileLocation location) throws IOException, MyException
public void deleteFile(String group, String fileName) throws IOException, MyException
public void updateFileSummary(FileLocation location, FileSummary fileSummary) throws IOException, MyException
Copyright © 2017. All rights reserved.