Class KieContainerImpl
- java.lang.Object
-
- org.drools.compiler.kie.builder.impl.KieContainerImpl
-
- All Implemented Interfaces:
org.drools.core.impl.InternalKieContainer
,org.kie.api.runtime.KieContainer
public class KieContainerImpl extends java.lang.Object implements org.drools.core.impl.InternalKieContainer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KieContainerImpl.CompositeRunnable
-
Constructor Summary
Constructors Constructor Description KieContainerImpl(java.lang.String containerId, KieProject kProject, org.kie.api.builder.KieRepository kr)
Please note: the recommended way of getting a KieContainer is relying onKieServices
API, for example:KieServices.newKieContainer(...)
.KieContainerImpl(java.lang.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 onKieServices
API, for example:KieServices.newKieContainer(...)
.KieContainerImpl(KieProject kProject, org.kie.api.builder.KieRepository kr)
Please note: the recommended way of getting a KieContainer is relying onKieServices
API, for example:KieServices.newKieContainer(...)
.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 onKieServices
API, for example:KieServices.newKieContainer(...)
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
disposeSession(org.kie.api.runtime.KieSession kieSession)
java.lang.ClassLoader
getClassLoader()
org.kie.api.builder.ReleaseId
getConfiguredReleaseId()
java.lang.String
getContainerId()
org.kie.api.builder.ReleaseId
getContainerReleaseId()
long
getCreationTimestamp()
org.kie.api.KieBase
getKieBase()
org.kie.api.KieBase
getKieBase(java.lang.String kBaseName)
org.kie.api.builder.model.KieBaseModel
getKieBaseModel(java.lang.String kBaseName)
java.util.Collection<java.lang.String>
getKieBaseNames()
org.kie.api.builder.KieModule
getKieModuleForKBase(java.lang.String kBaseName)
KieProject
getKieProject()
org.kie.api.runtime.KieSession
getKieSession()
org.kie.api.runtime.KieSession
getKieSession(java.lang.String kSessionName)
org.kie.api.runtime.KieSessionConfiguration
getKieSessionConfiguration()
org.kie.api.runtime.KieSessionConfiguration
getKieSessionConfiguration(java.lang.String kSessionName)
org.kie.api.builder.model.KieSessionModel
getKieSessionModel(java.lang.String kSessionName)
java.util.Collection<java.lang.String>
getKieSessionNamesInKieBase(java.lang.String kBaseName)
org.kie.api.builder.KieModule
getMainKieModule()
java.io.InputStream
getPomAsStream()
org.kie.api.builder.ReleaseId
getReleaseId()
org.kie.api.builder.ReleaseId
getResolvedReleaseId()
org.kie.api.runtime.StatelessKieSession
getStatelessKieSession()
org.kie.api.runtime.StatelessKieSession
getStatelessKieSession(java.lang.String kSessionName)
org.kie.api.KieBase
newKieBase(java.lang.String kBaseName, org.kie.api.KieBaseConfiguration conf)
org.kie.api.KieBase
newKieBase(org.kie.api.KieBaseConfiguration conf)
org.kie.api.runtime.KieSession
newKieSession()
org.kie.api.runtime.KieSession
newKieSession(java.lang.String kSessionName)
org.kie.api.runtime.KieSession
newKieSession(java.lang.String kSessionName, org.kie.api.runtime.Environment environment)
org.kie.api.runtime.KieSession
newKieSession(java.lang.String kSessionName, org.kie.api.runtime.Environment environment, org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.runtime.KieSession
newKieSession(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.runtime.KieSession
newKieSession(org.kie.api.runtime.Environment environment)
org.kie.api.runtime.KieSession
newKieSession(org.kie.api.runtime.Environment environment, org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.runtime.KieSession
newKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.runtime.KieContainerSessionsPool
newKieSessionsPool(int initialSize)
org.kie.api.runtime.StatelessKieSession
newStatelessKieSession()
org.kie.api.runtime.StatelessKieSession
newStatelessKieSession(java.lang.String kSessionName)
org.kie.api.runtime.StatelessKieSession
newStatelessKieSession(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.runtime.StatelessKieSession
newStatelessKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
org.kie.api.builder.Results
updateDependencyToVersion(org.kie.api.builder.ReleaseId currentReleaseId, org.kie.api.builder.ReleaseId newReleaseId)
org.kie.api.builder.Results
updateToKieModule(InternalKieModule newKM)
org.kie.api.builder.Results
updateToVersion(org.kie.api.builder.ReleaseId newReleaseId)
org.kie.api.builder.Results
verify()
org.kie.api.builder.Results
verify(java.lang.String... kModelNames)
-
-
-
Constructor Detail
-
KieContainerImpl
public KieContainerImpl(KieProject kProject, org.kie.api.builder.KieRepository kr)
Please note: the recommended way of getting a KieContainer is relying onKieServices
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 onKieServices
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(java.lang.String containerId, KieProject kProject, org.kie.api.builder.KieRepository kr)
Please note: the recommended way of getting a KieContainer is relying onKieServices
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(java.lang.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 onKieServices
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 interfaceorg.drools.core.impl.InternalKieContainer
-
getContainerId
public java.lang.String getContainerId()
- Specified by:
getContainerId
in interfaceorg.drools.core.impl.InternalKieContainer
-
getConfiguredReleaseId
public org.kie.api.builder.ReleaseId getConfiguredReleaseId()
- Specified by:
getConfiguredReleaseId
in interfaceorg.drools.core.impl.InternalKieContainer
-
getResolvedReleaseId
public org.kie.api.builder.ReleaseId getResolvedReleaseId()
- Specified by:
getResolvedReleaseId
in interfaceorg.drools.core.impl.InternalKieContainer
-
getReleaseId
public org.kie.api.builder.ReleaseId getReleaseId()
- Specified by:
getReleaseId
in interfaceorg.kie.api.runtime.KieContainer
-
getPomAsStream
public java.io.InputStream getPomAsStream()
- Specified by:
getPomAsStream
in interfaceorg.drools.core.impl.InternalKieContainer
-
getCreationTimestamp
public long getCreationTimestamp()
- Specified by:
getCreationTimestamp
in interfaceorg.drools.core.impl.InternalKieContainer
-
getContainerReleaseId
public org.kie.api.builder.ReleaseId getContainerReleaseId()
- Specified by:
getContainerReleaseId
in interfaceorg.drools.core.impl.InternalKieContainer
-
updateToVersion
public org.kie.api.builder.Results updateToVersion(org.kie.api.builder.ReleaseId newReleaseId)
- Specified by:
updateToVersion
in interfaceorg.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 interfaceorg.drools.core.impl.InternalKieContainer
-
getKieBaseNames
public java.util.Collection<java.lang.String> getKieBaseNames()
- Specified by:
getKieBaseNames
in interfaceorg.kie.api.runtime.KieContainer
-
getKieSessionNamesInKieBase
public java.util.Collection<java.lang.String> getKieSessionNamesInKieBase(java.lang.String kBaseName)
- Specified by:
getKieSessionNamesInKieBase
in interfaceorg.kie.api.runtime.KieContainer
-
getKieBase
public org.kie.api.KieBase getKieBase()
- Specified by:
getKieBase
in interfaceorg.kie.api.runtime.KieContainer
-
verify
public org.kie.api.builder.Results verify()
- Specified by:
verify
in interfaceorg.kie.api.runtime.KieContainer
-
verify
public org.kie.api.builder.Results verify(java.lang.String... kModelNames)
- Specified by:
verify
in interfaceorg.kie.api.runtime.KieContainer
-
getKieBase
public org.kie.api.KieBase getKieBase(java.lang.String kBaseName)
- Specified by:
getKieBase
in interfaceorg.kie.api.runtime.KieContainer
-
newKieBase
public org.kie.api.KieBase newKieBase(org.kie.api.KieBaseConfiguration conf)
- Specified by:
newKieBase
in interfaceorg.kie.api.runtime.KieContainer
-
newKieBase
public org.kie.api.KieBase newKieBase(java.lang.String kBaseName, org.kie.api.KieBaseConfiguration conf)
- Specified by:
newKieBase
in interfaceorg.kie.api.runtime.KieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession()
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
getKieSession
public org.kie.api.runtime.KieSession getKieSession()
- Specified by:
getKieSession
in interfaceorg.drools.core.impl.InternalKieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(org.kie.api.runtime.Environment environment)
- Specified by:
newKieSession
in interfaceorg.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 interfaceorg.kie.api.runtime.KieContainer
-
newKieSessionsPool
public org.kie.api.runtime.KieContainerSessionsPool newKieSessionsPool(int initialSize)
- Specified by:
newKieSessionsPool
in interfaceorg.kie.api.runtime.KieContainer
-
newStatelessKieSession
public org.kie.api.runtime.StatelessKieSession newStatelessKieSession()
- Specified by:
newStatelessKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newStatelessKieSession
public org.kie.api.runtime.StatelessKieSession newStatelessKieSession(org.kie.api.runtime.KieSessionConfiguration conf)
- Specified by:
newStatelessKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
getStatelessKieSession
public org.kie.api.runtime.StatelessKieSession getStatelessKieSession()
- Specified by:
getStatelessKieSession
in interfaceorg.drools.core.impl.InternalKieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(java.lang.String kSessionName)
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
getKieSession
public org.kie.api.runtime.KieSession getKieSession(java.lang.String kSessionName)
- Specified by:
getKieSession
in interfaceorg.drools.core.impl.InternalKieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(java.lang.String kSessionName, org.kie.api.runtime.Environment environment)
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf)
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession(java.lang.String kSessionName, org.kie.api.runtime.Environment environment, org.kie.api.runtime.KieSessionConfiguration conf)
- Specified by:
newKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newStatelessKieSession
public org.kie.api.runtime.StatelessKieSession newStatelessKieSession(java.lang.String kSessionName)
- Specified by:
newStatelessKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
newStatelessKieSession
public org.kie.api.runtime.StatelessKieSession newStatelessKieSession(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf)
- Specified by:
newStatelessKieSession
in interfaceorg.kie.api.runtime.KieContainer
-
getStatelessKieSession
public org.kie.api.runtime.StatelessKieSession getStatelessKieSession(java.lang.String kSessionName)
- Specified by:
getStatelessKieSession
in interfaceorg.drools.core.impl.InternalKieContainer
-
getKieSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration getKieSessionConfiguration()
- Specified by:
getKieSessionConfiguration
in interfaceorg.kie.api.runtime.KieContainer
-
getKieSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration getKieSessionConfiguration(java.lang.String kSessionName)
- Specified by:
getKieSessionConfiguration
in interfaceorg.kie.api.runtime.KieContainer
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.kie.api.runtime.KieContainer
-
disposeSession
public void disposeSession(org.kie.api.runtime.KieSession kieSession)
- Specified by:
disposeSession
in interfaceorg.drools.core.impl.InternalKieContainer
-
getKieProject
public KieProject getKieProject()
-
getKieModuleForKBase
public org.kie.api.builder.KieModule getKieModuleForKBase(java.lang.String kBaseName)
-
getKieBaseModel
public org.kie.api.builder.model.KieBaseModel getKieBaseModel(java.lang.String kBaseName)
- Specified by:
getKieBaseModel
in interfaceorg.kie.api.runtime.KieContainer
-
getKieSessionModel
public org.kie.api.builder.model.KieSessionModel getKieSessionModel(java.lang.String kSessionName)
- Specified by:
getKieSessionModel
in interfaceorg.kie.api.runtime.KieContainer
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceorg.kie.api.runtime.KieContainer
-
-