org.apache.storm.scheduler.utils

## Class FileConfigLoader

- java.lang.Object
- - org.apache.storm.scheduler.utils.FileConfigLoader

- All Implemented Interfaces:
    IConfigLoader

      public class FileConfigLoader
      extends Object
      implements IConfigLoader

  Scheduler configuration loader which loads configs from a file.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileConfigLoader(Map<String,Object> conf)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Object>` | `load(String configKey)` Load the configs associated with the configKey from the targetFilePath.

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

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

- - ### Constructor Detail

    - #### FileConfigLoader

          public FileConfigLoader(Map<String,Object> conf)

  - ### Method Detail

    - #### load

          public Map<String,Object> load(String configKey)

      Load the configs associated with the configKey from the targetFilePath.

      Specified by:
        `load` in interface `IConfigLoader`
      Parameters:
        `configKey` - The key from which we want to get the scheduler config.
      Returns:
        The scheduler configuration if exists; null otherwise.

Copyright © 2021 The Apache Software Foundation. All rights reserved.