public class RSClient extends Object
RSClient only used for server side.| 限定符和类型 | 方法和说明 |
|---|---|
BatchCallRet |
batchCopy(List<EntryPathPair> entries) |
BatchCallRet |
batchDelete(List<EntryPath> entries)
Deletes the files specified by the entries
|
BatchCallRet |
batchMove(List<EntryPathPair> entries) |
BatchStatRet |
batchStat(List<EntryPath> entries)
Gets the basic information of the file in a batch way.
|
CallRet |
copy(String bucketSrc,
String keySrc,
String bucketDest,
String keyDest)
Copies a source file from the source bucket to the dest bucket, unlike
method "move" the source file is still available in the source bucket.
|
CallRet |
delete(String bucket,
String key)
Deletes the file with the specified key in the bucket.
|
CallRet |
move(String bucketSrc,
String keySrc,
String bucketDest,
String keyDest)
Moves a file from the source bucket to the dest bucket, and the source
file will be removed from the source bucket.
|
Entry |
stat(String bucket,
String key)
Gets the basic information of the file with the specified key in the
bucket
|
public RSClient(Mac mac)
public Entry stat(String bucket, String key)
bucket - the bucket namekey - the file's keypublic CallRet delete(String bucket, String key)
bucket - target bucketkey - deleted keypublic CallRet move(String bucketSrc, String keySrc, String bucketDest, String keyDest)
bucketSrc - the source bucket namekeySrc - the source key in the source bucketbucketDest - the dest bucket namekeyDest - the dest key in the dest bucketpublic CallRet copy(String bucketSrc, String keySrc, String bucketDest, String keyDest)
bucketSrc - the source bucket namekeySrc - the source key in the source bucketbucketDest - the dest bucket namekeyDest - the dest file keypublic BatchStatRet batchStat(List<EntryPath> entries)
entries - a list of EntryPathStatRetpublic BatchCallRet batchDelete(List<EntryPath> entries)
public BatchCallRet batchMove(List<EntryPathPair> entries)
public BatchCallRet batchCopy(List<EntryPathPair> entries)
Copyright © 2014. All Rights Reserved.