public class PersistentVolume extends KubernetesResource implements IPersistentVolume
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE, VERBS, VERSION| Constructor and Description |
|---|
PersistentVolume(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAccessModes() |
long |
getCapacity() |
long |
getCapacity(MemoryUnit unit) |
long |
getCapacity(String unit) |
MemoryUnit |
getCapacityUnit() |
IPersistentVolumeProperties |
getPersistentVolumeProperties() |
String |
getPVType() |
String |
getReclaimPolicy() |
void |
setAccessModes(String... modes)
Sets the access modes.
|
void |
setCapacity(long capacity,
MemoryUnit unit)
Sets the capacity.
|
void |
setPersistentVolumeProperties(IPersistentVolumeProperties properties)
Sets the volume type properties.
|
void |
setReclaimPolicy(String policy)
Sets the 'spec.persistentVolumeReclaimPolicy' value
|
accept, addLabel, asBoolean, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic long getCapacity(String unit)
getCapacity in interface IPersistentVolumeunit - the designated unit. One of "Ki", "Mi", "Gi", "Ti", "Pi", "Ei".IllegalArgumentException - if not supported unit given.PersistentVolume#convert(String, MemoryUnit)}public long getCapacity(MemoryUnit unit)
getCapacity in interface IPersistentVolumeunit - the designated unit. One of MemoryUnit's Ki, Mi, Gi, Ti,
Pi, Ei.IllegalArgumentException - if not supported unit given.PersistentVolume#convert(String, MemoryUnit)}public long getCapacity()
getCapacity in interface IPersistentVolumepublic void setCapacity(long capacity,
MemoryUnit unit)
setCapacity in interface IPersistentVolumecapacity - the capacityunit - the unitpublic MemoryUnit getCapacityUnit()
getCapacityUnit in interface IPersistentVolumeMemoryUnit}public Set<String> getAccessModes()
getAccessModes in interface IPersistentVolumecom.openshift.restclient.model.volume.PVCAccessModes},
public void setAccessModes(String... modes)
modes parameter.setAccessModes in interface IPersistentVolumemodes - the access modespublic String getReclaimPolicy()
getReclaimPolicy in interface IPersistentVolumepublic void setReclaimPolicy(String policy)
setReclaimPolicy in interface IPersistentVolumepolicy - the policy stringpublic IPersistentVolumeProperties getPersistentVolumeProperties()
getPersistentVolumeProperties in interface IPersistentVolumepublic void setPersistentVolumeProperties(IPersistentVolumeProperties properties)
setPersistentVolumeProperties in interface IPersistentVolumeproperties - the propertiespublic String getPVType()
VolumeType.Copyright © 2020 Red Hat, Inc. All Rights Reserved.