java.lang.Comparable<BaseRecord>, PBRecordpublic class MountTablePBImpl extends MountTable implements PBRecord
ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH, ERROR_MSG_INVALID_DEST_NS, ERROR_MSG_INVALID_DEST_PATH, ERROR_MSG_MUST_START_WITH_BACK_SLASH, ERROR_MSG_NO_DEST_PATH_SPECIFIED, ERROR_MSG_NO_SOURCE_PATH, PATH_COMPARATOR, SOURCE_COMPARATORERROR_MSG_CREATION_TIME_NEGATIVE, ERROR_MSG_MODIFICATION_TIME_NEGATIVE| Constructor | Description |
|---|---|
MountTablePBImpl() |
|
MountTablePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.MountTableRecordProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addDestination(java.lang.String nsId,
java.lang.String path) |
Add a new destination to this mount table entry.
|
long |
getDateCreated() |
Get the creation time for the record.
|
long |
getDateModified() |
Get the modification time for the record.
|
java.util.List<RemoteLocation> |
getDestinations() |
Get a list of destinations (namespace + path) present for this entry.
|
DestinationOrder |
getDestOrder() |
Get the order of the destinations for this mount table entry.
|
java.lang.String |
getGroupName() |
Get group name of this mount table entry.
|
org.apache.hadoop.fs.permission.FsPermission |
getMode() |
Get permission of this mount table entry.
|
java.lang.String |
getOwnerName() |
Get owner name of this mount table entry.
|
org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.MountTableRecordProto |
getProto() |
Get the protocol for the record.
|
RouterQuotaUsage |
getQuota() |
Get quota of this mount table entry.
|
java.lang.String |
getSourcePath() |
Get source path in the federated namespace.
|
boolean |
isFaultTolerant() |
Check if the mount point supports a failed destination.
|
boolean |
isReadOnly() |
Check if the entry is read only.
|
void |
readInstance(java.lang.String base64String) |
Populate this record with serialized data.
|
void |
setDateCreated(long time) |
Set the creation time for the record.
|
void |
setDateModified(long time) |
Set the modification time for the record.
|
void |
setDestinations(java.util.List<RemoteLocation> dests) |
Set the destination paths.
|
void |
setDestOrder(DestinationOrder order) |
Set the order of the destinations for this mount table entry.
|
void |
setFaultTolerant(boolean faultTolerant) |
Set if the mount point supports failed destinations.
|
void |
setGroupName(java.lang.String group) |
Set group name of this mount table entry.
|
void |
setMode(org.apache.hadoop.fs.permission.FsPermission mode) |
Set permission for this mount table entry.
|
void |
setOwnerName(java.lang.String owner) |
Set owner name of this mount table entry.
|
void |
setProto(org.apache.hadoop.thirdparty.protobuf.Message proto) |
Set the protocol for the record.
|
void |
setQuota(RouterQuotaUsage quota) |
Set quota for this mount table entry.
|
void |
setReadOnly(boolean ro) |
Set an entry to be read only.
|
void |
setSourcePath(java.lang.String path) |
Set source path in the federated namespace.
|
equals, getDefaultLocation, getExpirationMs, getPrimaryKeys, hashCode, isAll, like, newInstance, newInstance, newInstance, toString, validatecheckExpired, compareTo, generateMashupKey, getDeletionMs, getPrimaryKey, hasOtherFields, init, isExpired, shouldBeDeletedpublic MountTablePBImpl()
public MountTablePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.MountTableRecordProto proto)
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.MountTableRecordProto getProto()
PBRecordpublic void setProto(org.apache.hadoop.thirdparty.protobuf.Message proto)
PBRecordpublic void readInstance(java.lang.String base64String)
throws java.io.IOException
PBRecordreadInstance in interface PBRecordbase64String - Serialized data in base64.java.io.IOException - If it cannot read the data.public java.lang.String getSourcePath()
MountTablegetSourcePath in class MountTablepublic void setSourcePath(java.lang.String path)
MountTablesetSourcePath in class MountTablepath - Source path in the federated namespace.public java.util.List<RemoteLocation> getDestinations()
MountTablegetDestinations in class MountTablepublic void setDestinations(java.util.List<RemoteLocation> dests)
MountTablesetDestinations in class MountTabledests - Destination paths.public boolean addDestination(java.lang.String nsId,
java.lang.String path)
MountTableaddDestination in class MountTablensId - Name service identifier.path - Path in the remote name service.public void setDateModified(long time)
BaseRecordsetDateModified in class BaseRecordtime - Modification time of the record.public long getDateModified()
BaseRecordgetDateModified in class BaseRecordpublic void setDateCreated(long time)
BaseRecordsetDateCreated in class BaseRecordtime - Creation time of the record.public long getDateCreated()
BaseRecordgetDateCreated in class BaseRecordpublic boolean isReadOnly()
MountTableisReadOnly in class MountTablepublic void setReadOnly(boolean ro)
MountTablesetReadOnly in class MountTablero - If the entry is read only.public DestinationOrder getDestOrder()
MountTablegetDestOrder in class MountTablepublic void setDestOrder(DestinationOrder order)
MountTablesetDestOrder in class MountTableorder - Order of the destinations.public boolean isFaultTolerant()
MountTableisFaultTolerant in class MountTablepublic void setFaultTolerant(boolean faultTolerant)
MountTablesetFaultTolerant in class MountTablefaultTolerant - If it supports failures.public java.lang.String getOwnerName()
MountTablegetOwnerName in class MountTablepublic void setOwnerName(java.lang.String owner)
MountTablesetOwnerName in class MountTableowner - Owner name for mount table entrypublic java.lang.String getGroupName()
MountTablegetGroupName in class MountTablepublic void setGroupName(java.lang.String group)
MountTablesetGroupName in class MountTablegroup - Group name for mount table entrypublic org.apache.hadoop.fs.permission.FsPermission getMode()
MountTablegetMode in class MountTablepublic void setMode(org.apache.hadoop.fs.permission.FsPermission mode)
MountTablesetMode in class MountTablemode - Permission for mount table entrypublic RouterQuotaUsage getQuota()
MountTablegetQuota in class MountTablepublic void setQuota(RouterQuotaUsage quota)
MountTablesetQuota in class MountTablequota - QuotaUsage for mount table entryCopyright © 2008–2025 Apache Software Foundation. All rights reserved.