QueryManager实例化:ServiceCredentials credentials = new ServiceCredentials("yourAccessKeyID",
"yourAccessKeySecret");
ServiceHost serviceHost = new ServiceHost("http://cn-hangzhou.oas.aliyuncs.com");
ClientConfiguration clientConfiguration = new ClientConfiguration();
AliyunOASClient aliyunOASClient = OASFactory.aliyunOASClientFactory(serviceHost,
credentials, clientConfiguration);
//方法1
QueryManager queryManager = OASFactory.queryManagerFactory(credentials,
"http://cn-hangzhou.oas.aliyuncs.com");
//方法2
QueryManager queryManager2 = OASFactory.queryManagerFactory(serviceHost, credentials,
clientConfiguration);
//方法3
QueryManager queryManager3 = OASFactory.queryManagerFactory(aliyunOASClient);
罗列Part列表
入参ListPartsRequest:
/**
* 罗列Part列表
* @param request 请求对象
* @return ListPartsResult对象包含Parts列表
*/
public ListPartsResult listAllParts(ListPartsRequest request);
返回结果 ListPartsResult:
其中,MultipartUploadDescriptor类结构:
其中,PartDescriptor类结构:
罗列Vault列表/**
* 罗列所有Vault列表
* @param request 请求对象
* @return ListVaultsResult对象
*/
public ListVaultsResult listAllVaults(ListVaultsRequest request);
返回结果 ListVaultsResult:
查询VaultId/**
* 根据VaultName获得VaultId
* @param vaultName Vault名字
* @return VaultId字符串
*/
public String getVaultIdFromName(String vaultName);
罗列MultipartUpload任务/**
* 罗列所有MultipartUpload任务
* @param request 请求对象
* @return ListMultipartUploadsResult对象
*/
public ListMultipartUploadsResult listAllMultipartUploads(ListMultipartUploadsRequest request);
返回结果 ListMultipartUploadsResult:
罗列所有Job列表/**
* 罗列出所有的Job
* @param request 请求对象
* @return ListJobsResult对象
*/
public ListJobsResult listAllJobs(ListJobsRequest request);
返回结果 ListJobsResult: