Class ErasureCoding
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.ErasureCoding
- Direct Known Subclasses:
AsyncErasureCoding
Module that implements all the RPC calls in
ClientProtocol related to
Erasure Coding in the RouterRpcServer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.protocol.AddErasureCodingPolicyResponse[]addErasureCodingPolicies(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy[] policies) voiddisableErasureCodingPolicy(String ecPolicyName) voidenableErasureCodingPolicy(String ecPolicyName) org.apache.hadoop.hdfs.protocol.ECBlockGroupStatsorg.apache.hadoop.hdfs.protocol.ECTopologyVerifierResultgetECTopologyResultForPolicies(String[] policyNames) org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo[]org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyvoidremoveErasureCodingPolicy(String ecPolicyName) voidsetErasureCodingPolicy(String src, String ecPolicyName) void
-
Constructor Details
-
ErasureCoding
-
-
Method Details
-
getErasureCodingPolicies
public org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo[] getErasureCodingPolicies() throws IOException- Throws:
IOException
-
getErasureCodingCodecs
- Throws:
IOException
-
addErasureCodingPolicies
public org.apache.hadoop.hdfs.protocol.AddErasureCodingPolicyResponse[] addErasureCodingPolicies(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy[] policies) throws IOException - Throws:
IOException
-
removeErasureCodingPolicy
- Throws:
IOException
-
disableErasureCodingPolicy
- Throws:
IOException
-
enableErasureCodingPolicy
- Throws:
IOException
-
getErasureCodingPolicy
public org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy getErasureCodingPolicy(String src) throws IOException - Throws:
IOException
-
setErasureCodingPolicy
- Throws:
IOException
-
unsetErasureCodingPolicy
- Throws:
IOException
-
getECTopologyResultForPolicies
public org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResult getECTopologyResultForPolicies(String[] policyNames) throws IOException - Throws:
IOException
-
getECBlockGroupStats
- Throws:
IOException
-