Interface PMMLRuntimeFactory


  • public interface PMMLRuntimeFactory
    • Method Detail

      • getPMMLRuntimeFromFile

        PMMLRuntime getPMMLRuntimeFromFile​(File pmmlFile)
        Retrieve a PMMLRuntime bound to the org.dmg.pmml.PMMLModel that should be present in the given
        Parameters:
        pmmlFile -
        Returns:
      • getPMMLRuntimeFromClasspath

        PMMLRuntime getPMMLRuntimeFromClasspath​(String pmmlFileName)
        Retrieve a PMMLRuntime bound to the org.dmg.pmml.PMMLModel that should be present in the with the given pmmlFileName. Such file will be looked for in the classpath (e.g. provided by Maven dependency)
        Parameters:
        pmmlFileName -
        Returns:
      • getPMMLRuntimeFromKieContainerByKieBase

        PMMLRuntime getPMMLRuntimeFromKieContainerByKieBase​(String kieBase,
                                                            String pmmlFileName,
                                                            String gav)
        Retrieve a PMMLRuntime bound to the org.dmg.pmml.PMMLModel that should be present in the with the given pmmlFileName. Such file will be looked for in the kjar loaded inside the KieContainer with the given gav
        Parameters:
        pmmlFileName -
        kieBase - the name of the Kiebase configured inside the kmodule.xml of the loaded kjar
        gav -
        Returns:
      • getPMMLRuntimeFromKieContainerByDefaultKieBase

        PMMLRuntime getPMMLRuntimeFromKieContainerByDefaultKieBase​(String pmmlFileName,
                                                                   String gav)
        Retrieve a PMMLRuntime bound to the org.dmg.pmml.PMMLModel that should be present in the with the given pmmlFileName. Such file will be looked for in the kjar loaded inside the KieContainer with the given gav. It will use the default Kiebase defined inside the kmodule.xml of the loaded kjar
        Parameters:
        pmmlFileName -
        gav -
        Returns:
      • getPMMLRuntimeFromFileNameModelNameAndKieBase

        PMMLRuntime getPMMLRuntimeFromFileNameModelNameAndKieBase​(String pmmlFileName,
                                                                  String pmmlModelName,
                                                                  org.kie.api.KieBase kieBase)
        Retrieve a PMMLRuntime bound to the org.dmg.pmml.PMMLModel with the given pmmlModelName that should be present in the with the given pmmlFileName. Such file will be looked for in the given KieBase
        Parameters:
        pmmlFileName -
        pmmlModelName -
        kieBase -
        Returns: