Class ModuleOrderUtil

java.lang.Object
com.espertech.esper.common.client.module.ModuleOrderUtil

public class ModuleOrderUtil extends Object
Module ordering utility.
  • Constructor Details

    • ModuleOrderUtil

      public ModuleOrderUtil()
  • Method Details

    • getModuleOrder

      public static ModuleOrder getModuleOrder(Collection<Module> modules, Set<String> deployedModules, ModuleOrderOptions options) throws ModuleOrderException
      Compute a deployment order among the modules passed in considering their uses-dependency declarations.

      The operation also checks and reports circular dependencies.

      Pass in @{link ModuleOrderOptions} to customize the behavior if this method. When passing no options or passing default options, the default behavior checks uses-dependencies and circular dependencies.

      Parameters:
      modules - to determine ordering for
      options - operation options or null for default options
      deployedModules - deployed modules
      Returns:
      ordered modules
      Throws:
      ModuleOrderException - when any module dependencies are not satisfied