org.apache.storm.scheduler.utils

## Class FileConfigLoaderFactory

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

- All Implemented Interfaces:
    IConfigLoaderFactory

      @AutoService(value=IConfigLoaderFactory.class)
      public class FileConfigLoaderFactory
      extends Object
      implements IConfigLoaderFactory

  Factory class for FileConfigLoader.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileConfigLoaderFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `IConfigLoader` | `createIfSupported(URI uri, Map<String,Object> conf)` Create a FileConfigLoader if the scheme of the URI is “file”; else return null.

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

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

- - ### Constructor Detail

    - #### FileConfigLoaderFactory

          public FileConfigLoaderFactory()

  - ### Method Detail

    - #### createIfSupported

          public IConfigLoader createIfSupported(URI uri,
                                                 Map<String,Object> conf)

      Create a FileConfigLoader if the scheme of the URI is “file”; else return null.

      Specified by:
        `createIfSupported` in interface `IConfigLoaderFactory`
      Parameters:
        `uri` - The URI which pointing to the config file location.
        `conf` - The storm configuration.
      Returns:
        A FileConfigLoader if the scheme is “file”; otherwise, null.

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