java.lang.Comparable<BaseRecord>MountTablePBImplpublic abstract class MountTable extends BaseRecord
MountTableStore data stored in the StateStoreService. Supports string serialization.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH |
|
static java.lang.String |
ERROR_MSG_INVALID_DEST_NS |
|
static java.lang.String |
ERROR_MSG_INVALID_DEST_PATH |
|
static java.lang.String |
ERROR_MSG_MUST_START_WITH_BACK_SLASH |
|
static java.lang.String |
ERROR_MSG_NO_DEST_PATH_SPECIFIED |
|
static java.lang.String |
ERROR_MSG_NO_SOURCE_PATH |
|
static java.util.Comparator<java.lang.String> |
PATH_COMPARATOR |
Comparator for paths which considers the /.
|
static java.util.Comparator<MountTable> |
SOURCE_COMPARATOR |
Comparator based on the mount table source.
|
ERROR_MSG_CREATION_TIME_NEGATIVE, ERROR_MSG_MODIFICATION_TIME_NEGATIVE| Constructor | Description |
|---|---|
MountTable() |
Default constructor for a mount table entry.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
addDestination(java.lang.String nsId,
java.lang.String path) |
Add a new destination to this mount table entry.
|
boolean |
equals(java.lang.Object obj) |
Override equals check to use primary key(s) for comparison.
|
RemoteLocation |
getDefaultLocation() |
Get the default location.
|
abstract java.util.List<RemoteLocation> |
getDestinations() |
Get a list of destinations (namespace + path) present for this entry.
|
abstract DestinationOrder |
getDestOrder() |
Get the order of the destinations for this mount table entry.
|
long |
getExpirationMs() |
Get the expiration time for the record.
|
abstract java.lang.String |
getGroupName() |
Get group name of this mount table entry.
|
abstract org.apache.hadoop.fs.permission.FsPermission |
getMode() |
Get permission of this mount table entry.
|
abstract java.lang.String |
getOwnerName() |
Get owner name of this mount table entry.
|
java.util.SortedMap<java.lang.String,java.lang.String> |
getPrimaryKeys() |
Map of primary key names to values for the record.
|
abstract RouterQuotaUsage |
getQuota() |
Get quota of this mount table entry.
|
abstract java.lang.String |
getSourcePath() |
Get source path in the federated namespace.
|
int |
hashCode() |
Override hash code to use primary key(s) for comparison.
|
boolean |
isAll() |
Check if a mount table spans all locations.
|
abstract boolean |
isFaultTolerant() |
Check if the mount point supports a failed destination.
|
abstract boolean |
isReadOnly() |
Check if the entry is read only.
|
boolean |
like(BaseRecord o) |
Check if this record matches a partial record.
|
static MountTable |
newInstance() |
|
static MountTable |
newInstance(java.lang.String src,
java.util.Map<java.lang.String,java.lang.String> destinations) |
Constructor for a mount table entry with multiple destinations.
|
static MountTable |
newInstance(java.lang.String src,
java.util.Map<java.lang.String,java.lang.String> destinations,
long dateCreated,
long dateModified) |
Constructor for a mount table entry with a single destinations.
|
abstract void |
setDestinations(java.util.List<RemoteLocation> dests) |
Set the destination paths.
|
abstract void |
setDestOrder(DestinationOrder order) |
Set the order of the destinations for this mount table entry.
|
abstract void |
setFaultTolerant(boolean faultTolerant) |
Set if the mount point supports failed destinations.
|
abstract void |
setGroupName(java.lang.String group) |
Set group name of this mount table entry.
|
abstract void |
setMode(org.apache.hadoop.fs.permission.FsPermission mode) |
Set permission for this mount table entry.
|
abstract void |
setOwnerName(java.lang.String owner) |
Set owner name of this mount table entry.
|
abstract void |
setQuota(RouterQuotaUsage quota) |
Set quota for this mount table entry.
|
abstract void |
setReadOnly(boolean ro) |
Set an entry to be read only.
|
abstract void |
setSourcePath(java.lang.String path) |
Set source path in the federated namespace.
|
java.lang.String |
toString() |
|
void |
validate() |
Validates the record.
|
checkExpired, compareTo, generateMashupKey, getDateCreated, getDateModified, getDeletionMs, getPrimaryKey, hasOtherFields, init, isExpired, setDateCreated, setDateModified, shouldBeDeletedpublic static final java.lang.String ERROR_MSG_NO_SOURCE_PATH
public static final java.lang.String ERROR_MSG_MUST_START_WITH_BACK_SLASH
public static final java.lang.String ERROR_MSG_NO_DEST_PATH_SPECIFIED
public static final java.lang.String ERROR_MSG_INVALID_DEST_NS
public static final java.lang.String ERROR_MSG_INVALID_DEST_PATH
public static final java.lang.String ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH
public static final java.util.Comparator<java.lang.String> PATH_COMPARATOR
public static final java.util.Comparator<MountTable> SOURCE_COMPARATOR
public static MountTable newInstance()
public static MountTable newInstance(java.lang.String src, java.util.Map<java.lang.String,java.lang.String> destinations, long dateCreated, long dateModified) throws java.io.IOException
src - Source path in the mount entry.destinations - Name service destination of the mount point.dateCreated - Created date.dateModified - Modified date.java.io.IOException - If it cannot be created.public static MountTable newInstance(java.lang.String src, java.util.Map<java.lang.String,java.lang.String> destinations) throws java.io.IOException
src - Source path in the mount entry.destinations - Name service destinations of the mount point.java.io.IOException - If it cannot be created.public abstract java.lang.String getSourcePath()
public abstract void setSourcePath(java.lang.String path)
path - Source path in the federated namespace.public abstract java.util.List<RemoteLocation> getDestinations()
public abstract void setDestinations(java.util.List<RemoteLocation> dests)
dests - Destination paths.public abstract boolean addDestination(java.lang.String nsId,
java.lang.String path)
nsId - Name service identifier.path - Path in the remote name service.public abstract boolean isReadOnly()
public abstract void setReadOnly(boolean ro)
ro - If the entry is read only.public abstract DestinationOrder getDestOrder()
public abstract void setDestOrder(DestinationOrder order)
order - Order of the destinations.public abstract boolean isFaultTolerant()
public abstract void setFaultTolerant(boolean faultTolerant)
faultTolerant - If it supports failures.public abstract java.lang.String getOwnerName()
public abstract void setOwnerName(java.lang.String owner)
owner - Owner name for mount table entrypublic abstract java.lang.String getGroupName()
public abstract void setGroupName(java.lang.String group)
group - Group name for mount table entrypublic abstract org.apache.hadoop.fs.permission.FsPermission getMode()
public abstract void setMode(org.apache.hadoop.fs.permission.FsPermission mode)
mode - Permission for mount table entrypublic abstract RouterQuotaUsage getQuota()
public abstract void setQuota(RouterQuotaUsage quota)
quota - QuotaUsage for mount table entrypublic RemoteLocation getDefaultLocation()
public boolean like(BaseRecord o)
BaseRecordlike in class BaseRecordo - Partial record.public java.lang.String toString()
toString in class BaseRecordpublic java.util.SortedMap<java.lang.String,java.lang.String> getPrimaryKeys()
BaseRecordgetPrimaryKeys in class BaseRecordpublic void validate()
BaseRecordvalidate in class BaseRecordpublic long getExpirationMs()
BaseRecordgetExpirationMs in class BaseRecordpublic int hashCode()
BaseRecordhashCode in class BaseRecordpublic boolean equals(java.lang.Object obj)
BaseRecordequals in class BaseRecordpublic boolean isAll()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.