public class Volume extends LazyLoad
Modifier and Type | Class and Description |
---|---|
static class |
Volume.Type |
Modifier and Type | Method and Description |
---|---|
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()
获取内部存储大小
|
Long |
getLifecycle()
获取生命周期
|
String |
getName()
获取volume名
|
String |
getOwner()
获取volume所属用户
|
Iterator<VolumePartition> |
getPartitionIterator()
获取分区迭代器
|
Iterator<VolumePartition> |
getPartitionIterator(VolumeFilter filter)
获取volume partition迭代器
|
String |
getProject()
获取 volume 所在
Project 名称 |
Map<String,String> |
getProperties()
获取 volume 的属性
|
Volume.Type |
getType() |
VolumeFSFile |
getVolumeFSFile(String path) |
VolumePartition |
getVolumePartition(String partitionName)
获取指定分区信息
|
void |
reload()
重新加载属性值
|
void |
setLifecycle(long lifecycle)
设置生命周期
|
void |
setProperties(Map<String,String> properties)
设置 volume 属性
|
public void setProperties(Map<String,String> properties)
properties
- public void reload() throws OdpsException
LazyLoad
reload
in class LazyLoad
OdpsException
public VolumeFSFile getVolumeFSFile(String path) throws VolumeException
VolumeException
public String getName()
public Volume.Type getType()
public String getComment()
public String getOwner()
public Date getCreatedTime()
public Date getLastModifiedTime()
public long getLength()
public Long getLifecycle()
public void setLifecycle(long lifecycle)
lifecycle
- 生命周期。 若为0, 表示 disable 生命周期public int getFileCount()
public VolumePartition getVolumePartition(String partitionName)
partitionName
- public void deleteVolumePartition(String partitionName) throws OdpsException
partitionName
- OdpsException
public Iterator<VolumePartition> getPartitionIterator()
public Iterator<VolumePartition> getPartitionIterator(VolumeFilter filter)
filter
- 过滤条件public static boolean checkPathHasVolume(String path)
path
- Copyright © 2023 Alibaba Cloud Computing. All rights reserved.