Class KieContainerImpl

  • All Implemented Interfaces:
    org.drools.core.impl.InternalKieContainer, org.kie.api.runtime.KieContainer

    public class KieContainerImpl
    extends Object
    implements org.drools.core.impl.InternalKieContainer
    • Constructor Detail

      • KieContainerImpl

        public KieContainerImpl​(KieProject kProject,
                                org.kie.api.builder.KieRepository kr)
        Please note: the recommended way of getting a KieContainer is relying on KieServices API, for example: KieServices.newKieContainer(...). The direct manual call to KieContainerImpl constructor instead would not guarantee the consistency of the supplied containerId.
      • KieContainerImpl

        public KieContainerImpl​(KieProject kProject,
                                org.kie.api.builder.KieRepository kr,
                                org.kie.api.builder.ReleaseId containerReleaseId)
        Please note: the recommended way of getting a KieContainer is relying on KieServices API, for example: KieServices.newKieContainer(...). The direct manual call to KieContainerImpl constructor instead would not guarantee the consistency of the supplied containerId.
      • KieContainerImpl

        public KieContainerImpl​(String containerId,
                                KieProject kProject,
                                org.kie.api.builder.KieRepository kr)
        Please note: the recommended way of getting a KieContainer is relying on KieServices API, for example: KieServices.newKieContainer(...). The direct manual call to KieContainerImpl constructor instead would not guarantee the consistency of the supplied containerId.
      • KieContainerImpl

        public KieContainerImpl​(String containerId,
                                KieProject kProject,
                                org.kie.api.builder.KieRepository kr,
                                org.kie.api.builder.ReleaseId containerReleaseId)
        Please note: the recommended way of getting a KieContainer is relying on KieServices API, for example: KieServices.newKieContainer(...). The direct manual call to KieContainerImpl constructor instead would not guarantee the consistency of the supplied containerId.
    • Method Detail

      • getMainKieModule

        public org.kie.api.builder.KieModule getMainKieModule()
        Specified by:
        getMainKieModule in interface org.drools.core.impl.InternalKieContainer
      • getContainerId

        public String getContainerId()
        Specified by:
        getContainerId in interface org.drools.core.impl.InternalKieContainer
      • getConfiguredReleaseId

        public org.kie.api.builder.ReleaseId getConfiguredReleaseId()
        Specified by:
        getConfiguredReleaseId in interface org.drools.core.impl.InternalKieContainer
      • getResolvedReleaseId

        public org.kie.api.builder.ReleaseId getResolvedReleaseId()
        Specified by:
        getResolvedReleaseId in interface org.drools.core.impl.InternalKieContainer
      • getReleaseId

        public org.kie.api.builder.ReleaseId getReleaseId()
        Specified by:
        getReleaseId in interface org.kie.api.runtime.KieContainer
      • getPomAsStream

        public InputStream getPomAsStream()
        Specified by:
        getPomAsStream in interface org.drools.core.impl.InternalKieContainer
      • getCreationTimestamp

        public long getCreationTimestamp()
        Specified by:
        getCreationTimestamp in interface org.drools.core.impl.InternalKieContainer
      • getContainerReleaseId

        public org.kie.api.builder.ReleaseId getContainerReleaseId()
        Specified by:
        getContainerReleaseId in interface org.drools.core.impl.InternalKieContainer
      • updateToVersion

        public org.kie.api.builder.Results updateToVersion​(org.kie.api.builder.ReleaseId newReleaseId)
        Specified by:
        updateToVersion in interface org.kie.api.runtime.KieContainer
      • updateToKieModule

        public org.kie.api.builder.Results updateToKieModule​(InternalKieModule newKM)
      • updateDependencyToVersion

        public org.kie.api.builder.Results updateDependencyToVersion​(org.kie.api.builder.ReleaseId currentReleaseId,
                                                                     org.kie.api.builder.ReleaseId newReleaseId)
        Specified by:
        updateDependencyToVersion in interface org.drools.core.impl.InternalKieContainer
      • getKieBaseNames

        public Collection<String> getKieBaseNames()
        Specified by:
        getKieBaseNames in interface org.kie.api.runtime.KieContainer
      • getKieSessionNamesInKieBase

        public Collection<String> getKieSessionNamesInKieBase​(String kBaseName)
        Specified by:
        getKieSessionNamesInKieBase in interface org.kie.api.runtime.KieContainer
      • getKieBase

        public org.kie.api.KieBase getKieBase()
        Specified by:
        getKieBase in interface org.kie.api.runtime.KieContainer
      • verify

        public org.kie.api.builder.Results verify()
        Specified by:
        verify in interface org.kie.api.runtime.KieContainer
      • verify

        public org.kie.api.builder.Results verify​(String... kModelNames)
        Specified by:
        verify in interface org.kie.api.runtime.KieContainer
      • getKieBase

        public org.kie.api.KieBase getKieBase​(String kBaseName)
        Specified by:
        getKieBase in interface org.kie.api.runtime.KieContainer
      • newKieBase

        public org.kie.api.KieBase newKieBase​(org.kie.api.KieBaseConfiguration conf)
        Specified by:
        newKieBase in interface org.kie.api.runtime.KieContainer
      • newKieBase

        public org.kie.api.KieBase newKieBase​(String kBaseName,
                                              org.kie.api.KieBaseConfiguration conf)
        Specified by:
        newKieBase in interface org.kie.api.runtime.KieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession()
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • getKieSession

        public org.kie.api.runtime.KieSession getKieSession()
        Specified by:
        getKieSession in interface org.drools.core.impl.InternalKieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(org.kie.api.runtime.Environment environment)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(org.kie.api.runtime.Environment environment,
                                                            org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newKieSessionsPool

        public org.kie.api.runtime.KieContainerSessionsPool newKieSessionsPool​(int initialSize)
        Specified by:
        newKieSessionsPool in interface org.kie.api.runtime.KieContainer
      • newStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession newStatelessKieSession()
        Specified by:
        newStatelessKieSession in interface org.kie.api.runtime.KieContainer
      • newStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession newStatelessKieSession​(org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newStatelessKieSession in interface org.kie.api.runtime.KieContainer
      • getStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession getStatelessKieSession()
        Specified by:
        getStatelessKieSession in interface org.drools.core.impl.InternalKieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(String kSessionName)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • getKieSession

        public org.kie.api.runtime.KieSession getKieSession​(String kSessionName)
        Specified by:
        getKieSession in interface org.drools.core.impl.InternalKieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(String kSessionName,
                                                            org.kie.api.runtime.Environment environment)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(String kSessionName,
                                                            org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newKieSession

        public org.kie.api.runtime.KieSession newKieSession​(String kSessionName,
                                                            org.kie.api.runtime.Environment environment,
                                                            org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newKieSession in interface org.kie.api.runtime.KieContainer
      • newStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession newStatelessKieSession​(String kSessionName)
        Specified by:
        newStatelessKieSession in interface org.kie.api.runtime.KieContainer
      • newStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession newStatelessKieSession​(String kSessionName,
                                                                              org.kie.api.runtime.KieSessionConfiguration conf)
        Specified by:
        newStatelessKieSession in interface org.kie.api.runtime.KieContainer
      • getStatelessKieSession

        public org.kie.api.runtime.StatelessKieSession getStatelessKieSession​(String kSessionName)
        Specified by:
        getStatelessKieSession in interface org.drools.core.impl.InternalKieContainer
      • getKieSessionConfiguration

        public org.kie.api.runtime.KieSessionConfiguration getKieSessionConfiguration()
        Specified by:
        getKieSessionConfiguration in interface org.kie.api.runtime.KieContainer
      • getKieSessionConfiguration

        public org.kie.api.runtime.KieSessionConfiguration getKieSessionConfiguration​(String kSessionName)
        Specified by:
        getKieSessionConfiguration in interface org.kie.api.runtime.KieContainer
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.kie.api.runtime.KieContainer
      • disposeSession

        public void disposeSession​(org.kie.api.runtime.KieSession kieSession)
        Specified by:
        disposeSession in interface org.drools.core.impl.InternalKieContainer
      • getKieProject

        public KieProject getKieProject()
      • getKieModuleForKBase

        public org.kie.api.builder.KieModule getKieModuleForKBase​(String kBaseName)
      • getKieBaseModel

        public org.kie.api.builder.model.KieBaseModel getKieBaseModel​(String kBaseName)
        Specified by:
        getKieBaseModel in interface org.kie.api.runtime.KieContainer
      • getKieSessionModel

        public org.kie.api.builder.model.KieSessionModel getKieSessionModel​(String kSessionName)
        Specified by:
        getKieSessionModel in interface org.kie.api.runtime.KieContainer
      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface org.kie.api.runtime.KieContainer