Package io.zenoh

Object Config.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Config loadDefault() Returns the default config.
      final Config fromFile(File file) Loads the configuration from the File specified.
      final Config fromFile(Path path) Loads the configuration from the Path specified.
      final Config fromJson(String config) Loads the configuration from json-formatted string.
      final Config fromJson5(String config) Loads the configuration from json5-formatted string.
      final Config fromYaml(String config) Loads the configuration from yaml-formatted string.
      final Config fromEnv() Loads the configuration from the env variable CONFIG_ENV.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fromFile

         final Config fromFile(File file)

        Loads the configuration from the File specified.

        Parameters:
        file - The Zenoh config file.
        Returns:

        The Config.

      • fromFile

         final Config fromFile(Path path)

        Loads the configuration from the Path specified.

        Parameters:
        path - Path to the Zenoh config file.
        Returns:

        The Config.

      • fromJson

         final Config fromJson(String config)

        Loads the configuration from json-formatted string.

        Visit the default configuration for more information on the Zenoh config parameters.

        Parameters:
        config - Json formatted config.
        Returns:

        The Config.

      • fromJson5

         final Config fromJson5(String config)

        Loads the configuration from json5-formatted string.

        Visit the default configuration for more information on the Zenoh config parameters.

        Parameters:
        config - Json5 formatted config
        Returns:

        The Config.

      • fromYaml

         final Config fromYaml(String config)

        Loads the configuration from yaml-formatted string.

        Visit the default configuration for more information on the Zenoh config parameters.

        Parameters:
        config - Yaml formatted config
        Returns:

        The Config.

      • fromEnv

         final Config fromEnv()

        Loads the configuration from the env variable CONFIG_ENV.

        Returns:

        The config.