Package org.kie.pmml.api
Interface PMMLRuntimeFactory
-
public interface PMMLRuntimeFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PMMLRuntimegetPMMLRuntimeFromClasspath(String pmmlFileName)Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith the given pmmlFileName. PMMLRuntimegetPMMLRuntimeFromFile(File pmmlFile)Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in the givenPMMLRuntimegetPMMLRuntimeFromFileNameModelNameAndKieBase(String pmmlFileName, String pmmlModelName, org.kie.api.KieBase kieBase)Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelwith the given pmmlModelName that should be present in thewith the given pmmlFileName. PMMLRuntimegetPMMLRuntimeFromKieContainerByDefaultKieBase(String pmmlFileName, String gav)Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith the given pmmlFileName. PMMLRuntimegetPMMLRuntimeFromKieContainerByKieBase(String kieBase, String pmmlFileName, String gav)Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith the given pmmlFileName.
-
-
-
Method Detail
-
getPMMLRuntimeFromFile
PMMLRuntime getPMMLRuntimeFromFile(File pmmlFile)
Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in the given- Parameters:
pmmlFile-- Returns:
-
getPMMLRuntimeFromClasspath
PMMLRuntime getPMMLRuntimeFromClasspath(String pmmlFileName)
Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith 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 aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith the given pmmlFileName. Such file will be looked for in the kjarloaded inside theKieContainerwith the given gav- Parameters:
pmmlFileName-kieBase- the name of the Kiebase configured inside the kmodule.xml of the loaded kjargav-- Returns:
-
getPMMLRuntimeFromKieContainerByDefaultKieBase
PMMLRuntime getPMMLRuntimeFromKieContainerByDefaultKieBase(String pmmlFileName, String gav)
Retrieve aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelthat should be present in thewith the given pmmlFileName. Such file will be looked for in the kjarloaded inside theKieContainerwith 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 aPMMLRuntimebound to theorg.dmg.pmml.PMMLModelwith the given pmmlModelName that should be present in thewith the given pmmlFileName. Such file will be looked for in the given KieBase- Parameters:
pmmlFileName-pmmlModelName-kieBase-- Returns:
-
-