Package org.drools.core.impl
Interface InternalKieContainer
-
- All Superinterfaces:
org.kie.api.runtime.KieContainer
public interface InternalKieContainer extends org.kie.api.runtime.KieContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisposeSession(org.kie.api.runtime.KieSession kieSession)org.kie.api.builder.ReleaseIdgetConfiguredReleaseId()Returns the RelaseId configured while creating the Kiecontainer.StringgetContainerId()Returns the ID assigned to the container.org.kie.api.builder.ReleaseIdgetContainerReleaseId()Internal use: returns the RelaseId configured while creating the Kiecontainer, or alternatively if the RelaseId was NOT configured while creating the Kiecontainer, returns the the ReleaseId of the KieModule wrapped by this KieContainer.longgetCreationTimestamp()org.kie.api.runtime.KieSessiongetKieSession()Returns an already created defualt KieSession for this KieContainer or creates a new oneorg.kie.api.runtime.KieSessiongetKieSession(String kSessionName)Returns an already created KieSession with the given name for this KieContainer or creates a new oneorg.kie.api.builder.KieModulegetMainKieModule()InputStreamgetPomAsStream()org.kie.api.builder.ReleaseIdgetResolvedReleaseId()Returns the actual resolved ReleaseId.org.kie.api.runtime.StatelessKieSessiongetStatelessKieSession()org.kie.api.runtime.StatelessKieSessiongetStatelessKieSession(String kSessionName)org.kie.api.builder.ResultsupdateDependencyToVersion(org.kie.api.builder.ReleaseId currentReleaseId, org.kie.api.builder.ReleaseId newReleaseId)-
Methods inherited from interface org.kie.api.runtime.KieContainer
dispose, getClassLoader, getKieBase, getKieBase, getKieBaseModel, getKieBaseNames, getKieSessionConfiguration, getKieSessionConfiguration, getKieSessionModel, getKieSessionNamesInKieBase, getReleaseId, newKieBase, newKieBase, newKieSession, newKieSession, newKieSession, newKieSession, newKieSession, newKieSession, newKieSession, newKieSession, newKieSessionsPool, newStatelessKieSession, newStatelessKieSession, newStatelessKieSession, newStatelessKieSession, updateToVersion, verify, verify
-
-
-
-
Method Detail
-
getKieSession
org.kie.api.runtime.KieSession getKieSession()
Returns an already created defualt KieSession for this KieContainer or creates a new one- Throws:
RuntimeException- if this KieContainer doesn't have any defualt KieSession- See Also:
KieSessionModel.setDefault(boolean)
-
getKieSession
org.kie.api.runtime.KieSession getKieSession(String kSessionName)
Returns an already created KieSession with the given name for this KieContainer or creates a new one- Throws:
RuntimeException- if this KieContainer doesn't have any defualt KieSession- See Also:
KieSessionModel.setDefault(boolean)
-
getStatelessKieSession
org.kie.api.runtime.StatelessKieSession getStatelessKieSession()
-
getStatelessKieSession
org.kie.api.runtime.StatelessKieSession getStatelessKieSession(String kSessionName)
-
getContainerReleaseId
org.kie.api.builder.ReleaseId getContainerReleaseId()
Internal use: returns the RelaseId configured while creating the Kiecontainer, or alternatively if the RelaseId was NOT configured while creating the Kiecontainer, returns the the ReleaseId of the KieModule wrapped by this KieContainer. Additionally, please notice this will always gets updated to the parameter passed as updateToVersion(ReleaseId).- See Also:
KieContainer.getReleaseId(),KieContainer.updateToVersion(ReleaseId)
-
getCreationTimestamp
long getCreationTimestamp()
-
updateDependencyToVersion
org.kie.api.builder.Results updateDependencyToVersion(org.kie.api.builder.ReleaseId currentReleaseId, org.kie.api.builder.ReleaseId newReleaseId)
-
getPomAsStream
InputStream getPomAsStream()
-
getMainKieModule
org.kie.api.builder.KieModule getMainKieModule()
- Returns:
- the
KieModuleof theKieContainer.getReleaseId()
-
getContainerId
String getContainerId()
Returns the ID assigned to the container.- Returns:
- the ID assigned to the container.
-
getConfiguredReleaseId
org.kie.api.builder.ReleaseId getConfiguredReleaseId()
Returns the RelaseId configured while creating the Kiecontainer.- Returns:
- the RelaseId configured while creating the Kiecontainer.
-
getResolvedReleaseId
org.kie.api.builder.ReleaseId getResolvedReleaseId()
Returns the actual resolved ReleaseId.- Returns:
- the actual resolved ReleaseId.
-
disposeSession
void disposeSession(org.kie.api.runtime.KieSession kieSession)
-
-