public class Volume extends LazyLoad
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Volume.Type |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkPathHasVolume(String path)
Check whether the path has a volume part
|
void |
deleteVolumePartition(String partitionName)
删除指定分区
|
String |
getComment()
获取注释
|
Date |
getCreatedTime()
获取创建时间
|
int |
getFileCount()
获取内部文件个数
|
Date |
getLastModifiedTime()
获取volume最后修改时间
|
long |
getLength()
获取内部存储大小
|
String |
getName()
获取volume名
|
String |
getOwner()
获取volume所属用户
|
Iterator<VolumePartition> |
getPartitionIterator()
获取分区迭代器
|
Iterator<VolumePartition> |
getPartitionIterator(VolumeFilter filter)
获取volume partition迭代器
|
Volume.Type |
getType() |
VolumeFSFile |
getVolumeFSFile(String path) |
VolumePartition |
getVolumePartition(String partitionName)
获取指定分区信息
|
void |
reload()
重新加载属性值
|
public void reload()
throws OdpsException
LazyLoadreload 在类中 LazyLoadOdpsExceptionpublic VolumeFSFile getVolumeFSFile(String path) throws VolumeException
VolumeExceptionpublic String getName()
public Volume.Type getType()
public String getComment()
public String getOwner()
public Date getCreatedTime()
public Date getLastModifiedTime()
public long getLength()
public int getFileCount()
public VolumePartition getVolumePartition(String partitionName)
spec - 分区定义public void deleteVolumePartition(String partitionName) throws OdpsException
spec - 分区描述OdpsExceptionpublic Iterator<VolumePartition> getPartitionIterator()
public Iterator<VolumePartition> getPartitionIterator(VolumeFilter filter)
filter - 过滤条件public static boolean checkPathHasVolume(String path)
path - Copyright © 2015 Alibaba Cloud Computing. All rights reserved.