ECPolicyLoader (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.util, class: ECPolicyLoader

Package org.apache.hadoop.hdfs.util

# 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 Summary

  Constructors
  Constructor
  Description
  `ECPolicyLoader()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<ErasureCodingPolicy>`
  `loadPolicy(String policyFilePath)`
  Load user defined EC policies from a XML configuration file.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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