Class AddMountAttributes
java.lang.Object
org.apache.hadoop.hdfs.tools.federation.AddMountAttributes
Add mount entry attributes to be used by Router admin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.tools.federation.RouterAdmin.ACLEntitygetDest()getMount()Retrieve mount table object with all attributes derived from this object.getNewOrUpdatedMountTableEntryWithAttributes(MountTable existingEntry) Retrieve mount table object with all attributes derived from this object.String[]getNss()getOrder()intbooleanbooleanvoidsetAclInfo(org.apache.hadoop.hdfs.tools.federation.RouterAdmin.ACLEntity aclInfo) voidvoidsetFaultTolerant(boolean faultTolerant) voidvoidvoidsetOrder(DestinationOrder order) voidsetParamIndex(int paramIndex) voidsetReadonly(boolean readonly)
-
Constructor Details
-
AddMountAttributes
public AddMountAttributes()
-
-
Method Details
-
getMount
-
setMount
-
getNss
-
setNss
-
getDest
-
setDest
-
isReadonly
public boolean isReadonly() -
setReadonly
public void setReadonly(boolean readonly) -
isFaultTolerant
public boolean isFaultTolerant() -
setFaultTolerant
public void setFaultTolerant(boolean faultTolerant) -
getOrder
-
setOrder
-
getAclInfo
public org.apache.hadoop.hdfs.tools.federation.RouterAdmin.ACLEntity getAclInfo() -
setAclInfo
public void setAclInfo(org.apache.hadoop.hdfs.tools.federation.RouterAdmin.ACLEntity aclInfo) -
getParamIndex
public int getParamIndex() -
setParamIndex
public void setParamIndex(int paramIndex) -
getMountTableEntryWithAttributes
Retrieve mount table object with all attributes derived from this object.- Returns:
- MountTable object with updated attributes.
- Throws:
IOException- If mount table instantiation fails.
-
getNewOrUpdatedMountTableEntryWithAttributes
public MountTable getNewOrUpdatedMountTableEntryWithAttributes(MountTable existingEntry) throws IOException Retrieve mount table object with all attributes derived from this object. The returned mount table could be either new or existing one with updated attributes.- Parameters:
existingEntry- Existing mount table entry. If null, new mount table object is created, otherwise the existing mount table object is updated.- Returns:
- MountTable object with updated attributes.
- Throws:
IOException- If mount table instantiation fails.
-