Class ECPolicyLoader

java.lang.Object
org.apache.hadoop.hdfs.util.ECPolicyLoader

@Private public class ECPolicyLoader extends Object
A EC policy loading tool that loads user defined EC policies from XML file.
  • Constructor Details

    • ECPolicyLoader

      public ECPolicyLoader()
  • Method Details

    • loadPolicy

      public List<ErasureCodingPolicy> loadPolicy(String policyFilePath)
      Load user defined EC policies from a XML configuration file.
      Parameters:
      policyFilePath - path of EC policy file
      Returns:
      all valid EC policies in EC policy file