public interface KieContainer
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes all the KieSessions created in this KieContainer.
|
ClassLoader |
getClassLoader()
Returns the ClassLoader used by this KieContainer
|
KieBase |
getKieBase()
Returns the default KieBase in this KieContainer.
|
KieBase |
getKieBase(String kBaseName)
Returns the KieBase with the given name in this KieContainer.
|
KieBaseModel |
getKieBaseModel(String kBaseName)
Returns the KieBaseModel for the KieBase with the given name
|
Collection<String> |
getKieBaseNames()
Returns the names of all the KieBases available in this KieContainer
|
KieSessionConfiguration |
getKieSessionConfiguration()
Returns the KieSessionConfiguration of the default KieSession for this KieContainer
|
KieSessionConfiguration |
getKieSessionConfiguration(String kSessionName)
Returns the KieSessionConfiguration of the KieSession with the given name for this KieContainer
|
KieSessionModel |
getKieSessionModel(String kSessionName)
Returns the KieSessionModel for the KieSession with the given name
|
Collection<String> |
getKieSessionNamesInKieBase(String kBaseName)
Returns the names of all the KieSessions defined in this KieContainer for the given KieBase
|
ReleaseId |
getReleaseId()
Returns the ReleaseId of the KieModule wrapped by this KieContainer
|
KieBase |
newKieBase(KieBaseConfiguration conf)
Creates a new default KieBase using the given configuration.
|
KieBase |
newKieBase(String kBaseName,
KieBaseConfiguration conf)
Creates a new KieBase with the given name using the given configuration.
|
KieSession |
newKieSession()
Creates the default KieSession for this KieContainer
|
KieSession |
newKieSession(Environment environment)
Creates the default
KieSession for this KieContainer using the given Environment |
KieSession |
newKieSession(Environment environment,
KieSessionConfiguration conf)
Creates the default KieSession for this KieContainer with the given configuration and Environment
|
KieSession |
newKieSession(KieSessionConfiguration conf)
Creates the default KieSession for this KieContainer with the given configuration
|
KieSession |
newKieSession(String kSessionName)
Creates the KieSession with the given name for this KieContainer
|
KieSession |
newKieSession(String kSessionName,
Environment environment)
Creates the KieSession with the given name for this KieContainer using the given Environment
|
KieSession |
newKieSession(String kSessionName,
Environment environment,
KieSessionConfiguration conf)
Creates the KieSession with the given name for this KieContainer using the given Environment and configuration
|
KieSession |
newKieSession(String kSessionName,
KieSessionConfiguration conf)
Creates the KieSession with the given name for this KieContainer with the given configuration
|
KieContainerSessionsPool |
newKieSessionsPool(int initialSize)
Creates a new
KieContainerSessionsPool storing the sessions created from this KieContainer. |
StatelessKieSession |
newStatelessKieSession()
Creates the default StatelessKieSession for this KieContainer
|
StatelessKieSession |
newStatelessKieSession(KieSessionConfiguration conf)
Creates the default StatelessKieSession for this KieContainer using the given configuration
|
StatelessKieSession |
newStatelessKieSession(String kSessionName)
Creates the StatelessKieSession with the given name for this KieContainer
|
StatelessKieSession |
newStatelessKieSession(String kSessionName,
KieSessionConfiguration conf)
Creates the StatelessKieSession with the given name for this KieContainer using the given configuration
|
Results |
updateToVersion(ReleaseId version)
Updates this KieContainer to a KieModule with the given fixed ReleaseId (e.g. com.acme:acme-rules:1.0.0.Final).
|
Results |
verify()
Builds all the KieBase in the KieModule wrapped by this KieContainer
and return te Results of this building process
|
Results |
verify(String... kBaseNames)
Builds the KieBases with the given name(s) in the KieModule wrapped by this KieContainer
and return the Results of this building process
|
void dispose()
ReleaseId getReleaseId()
Results verify()
Results verify(String... kBaseNames)
Results updateToVersion(ReleaseId version)
Collection<String> getKieBaseNames()
Collection<String> getKieSessionNamesInKieBase(String kBaseName)
KieBase getKieBase()
RuntimeException
- if this KieContainer doesn't have any default KieBaseKieBaseModel.setDefault(boolean)
KieBase getKieBase(String kBaseName)
RuntimeException
- if this KieContainer doesn't have any KieBase with the given nameKieBase newKieBase(KieBaseConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any default KieBaseKieBaseModel.setDefault(boolean)
KieBase newKieBase(String kBaseName, KieBaseConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any KieBase with the given nameKieContainerSessionsPool newKieSessionsPool(int initialSize)
KieContainerSessionsPool
storing the sessions created from this KieContainer.
Don't forget to KieSessionsPool.shutdown()
the pool when you are done.initialSize
- the initial size of sessions in the poolKieContainerSessionsPool
KieSession newKieSession()
RuntimeException
- if this KieContainer doesn't have any default KieSessionKieSessionModel.setDefault(boolean)
KieSession newKieSession(KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any default KieSessionKieSessionModel.setDefault(boolean)
KieSession newKieSession(Environment environment)
KieSession
for this KieContainer using the given EnvironmentRuntimeException
- if this KieContainer doesn't have any default KieSessionKieSessionModel.setDefault(boolean)
KieSession newKieSession(Environment environment, KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any default KieSessionKieSessionModel.setDefault(boolean)
KieSession newKieSession(String kSessionName)
RuntimeException
- if this KieContainer doesn't have any KieSession with the given nameKieSession newKieSession(String kSessionName, Environment environment)
RuntimeException
- if this KieContainer doesn't have any KieSession with the given nameKieSession newKieSession(String kSessionName, KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any KieSession with the given nameKieSession newKieSession(String kSessionName, Environment environment, KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any KieSession with the given nameStatelessKieSession newStatelessKieSession()
RuntimeException
- if this KieContainer doesn't have any default StatelessKieSessionKieSessionModel.setDefault(boolean)
StatelessKieSession newStatelessKieSession(KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any default StatelessKieSessionKieSessionModel.setDefault(boolean)
StatelessKieSession newStatelessKieSession(String kSessionName)
RuntimeException
- if this KieContainer doesn't have any StatelessKieSession with the given nameStatelessKieSession newStatelessKieSession(String kSessionName, KieSessionConfiguration conf)
RuntimeException
- if this KieContainer doesn't have any StatelessKieSession with the given nameClassLoader getClassLoader()
KieSessionConfiguration getKieSessionConfiguration()
KieSessionConfiguration getKieSessionConfiguration(String kSessionName)
KieBaseModel getKieBaseModel(String kBaseName)
KieSessionModel getKieSessionModel(String kSessionName)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.