Class Ignite2ConfigurationUtils

java.lang.Object
org.apache.ignite.migrationtools.config.Ignite2ConfigurationUtils

public class Ignite2ConfigurationUtils extends Object
Utility methods for managing Ignite 2 Configurations.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.beans.factory.support.DefaultListableBeanFactory
    createBeanFactory(boolean skipUnloadableBeans)
    Create spring bean factory based on the skipUnloadableBeans property.
    static org.apache.ignite.configuration.IgniteConfiguration
    loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans)
     
    static org.apache.ignite.configuration.IgniteConfiguration
    loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans, @Nullable ClassLoader clientClassLoader)
     
    static org.apache.ignite.configuration.IgniteConfiguration
    loadIgnite2Configuration(org.springframework.core.io.Resource rsrc, org.springframework.beans.factory.support.DefaultListableBeanFactory factory, @Nullable ClassLoader classLoader)
    Load and Apache Ignite 2 configuration into memory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • loadIgnite2Configuration

      public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans)
    • loadIgnite2Configuration

      public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(File inputFile, boolean skipUnloadableBeans, @Nullable @Nullable ClassLoader clientClassLoader)
    • loadIgnite2Configuration

      public static org.apache.ignite.configuration.IgniteConfiguration loadIgnite2Configuration(org.springframework.core.io.Resource rsrc, org.springframework.beans.factory.support.DefaultListableBeanFactory factory, @Nullable @Nullable ClassLoader classLoader) throws org.springframework.beans.BeansException, IllegalStateException
      Load and Apache Ignite 2 configuration into memory.
      Parameters:
      rsrc - The input xml configuration file as a resource.
      factory - The BeanFactory
      Returns:
      The IgniteConfiguration object.
      Throws:
      org.springframework.beans.BeansException
      IllegalStateException
    • createBeanFactory

      public static org.springframework.beans.factory.support.DefaultListableBeanFactory createBeanFactory(boolean skipUnloadableBeans)
      Create spring bean factory based on the skipUnloadableBeans property.
      Parameters:
      skipUnloadableBeans - Whether the factory should skip unloadable beans or fail with an error.
      Returns:
      The appropriate bean factory.