public class VolumeTunnel extends Object
Modifier and Type | Class and Description |
---|---|
class |
VolumeTunnel.DownloadSession
此类表示一个向ODPS中下载Volume的会话
|
static class |
VolumeTunnel.DownloadStatus
下载会话的状态
UNKNOWN 未知 NORMAL 正常 CLOSED 关闭 EXPIRED 过期 |
class |
VolumeTunnel.UploadSession
UploadSession表示一个向ODPS表中上传数据的会话
|
static class |
VolumeTunnel.UploadStatus
UploadStatus表示当前Upload的状态
UNKNOWN 未知 NORMAL 正常 CLOSING 关闭中 CLOSED 已关闭 CANCELED 已取消 EXPIRED 已过期 CRITICAL 严重错误 |
Constructor and Description |
---|
VolumeTunnel(Odps odps)
构造此类对象
|
Modifier and Type | Method and Description |
---|---|
VolumeTunnel.DownloadSession |
createDownloadSession(String projectName,
String volumeName,
String partition,
String fileName)
构造一个新的
VolumeTunnel.DownloadSession 对象。 |
VolumeTunnel.UploadSession |
createUploadSession(String projectName,
String volumeName,
String partition)
构造一个新的
VolumeTunnel.UploadSession 对象。 |
VolumeTunnel.DownloadSession |
getDownloadSession(String projectName,
String volumeName,
String partition,
String fileName,
String downloadId)
根据已有downloadId获取一个
VolumeTunnel.DownloadSession 对象。 |
VolumeTunnel.UploadSession |
getUploadSession(String projectName,
String volumeName,
String partition,
String uploadId)
根据已有uploadId获取一个
VolumeTunnel.UploadSession 对象。 |
void |
setEndpoint(String endpoint)
设置TunnelServer地址
|
public void setEndpoint(String endpoint)
没有设置TunnelServer地址的情况下, 自动选择
endpoint
- public VolumeTunnel.UploadSession createUploadSession(String projectName, String volumeName, String partition) throws TunnelException
VolumeTunnel.UploadSession
对象。projectName
- 上传File所在的project名称volumeName
- 上传File所在的volume名称partition
- 上传File的partition描述,由字母,数字,下划线组成,3-32个字符,举例如下: my_pt_001TunnelException
public VolumeTunnel.UploadSession getUploadSession(String projectName, String volumeName, String partition, String uploadId) throws TunnelException
VolumeTunnel.UploadSession
对象。projectName
- 上传File所在的project名称volumeName
- 上传File所在的volume名称partition
- 上传File的partition描述,由字母,数字,下划线组成,3-32个字符,举例如下: my_pt_001uploadId
- Upload的唯一标识符TunnelException
public VolumeTunnel.DownloadSession createDownloadSession(String projectName, String volumeName, String partition, String fileName) throws TunnelException
VolumeTunnel.DownloadSession
对象。projectName
- 下载File所在project名称volumeName
- 下载File所在volume名称partition
- 下载File的partition描述fileName
- 下载File的名称TunnelException
public VolumeTunnel.DownloadSession getDownloadSession(String projectName, String volumeName, String partition, String fileName, String downloadId) throws TunnelException
VolumeTunnel.DownloadSession
对象。projectName
- 下载File所在project名称volumeName
- 下载File所在volume名称partition
- 下载File的partition描述fileName
- 下载File的名称downloadId
- VolumeTunnel.DownloadSession的唯一标识符TunnelException
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.