|
KIE API 6.0.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeManager
RuntimeManager manages RuntimeEngine
s that are esentially build with
KieSession
and TaskService
to deliver executable environments for
processes and user tasks.
Moreover RuntimeManager
ensures that all components are configured and bootstrapped
as soon as manager is instantiated to ensure its fully featured functionality right from the start.
That includes:
RuntimeManager
s are identified by unique identifiers and thus there cannot be two RuntimeManagers
with the same id active at the same time in the same system.
Method Summary | |
---|---|
void |
close()
Closes RuntimeManager and releases it's resources. |
void |
disposeRuntimeEngine(RuntimeEngine runtime)
Disposes RuntimeEngine and notifies all listeners about that fact. |
String |
getIdentifier()
Unique identifier of the RuntimeManager |
RuntimeEngine |
getRuntimeEngine(Context<?> context)
Returns RuntimeEngine instance that is fully initialized:
KiseSession is created or loaded depending on the strategy
TaskService is initialized and attached to ksession (via listener)
WorkItemHandlers are initialized and registered on ksession
EventListeners (process, agenda, working memory) are initialized and added to ksession
|
Method Detail |
---|
RuntimeEngine getRuntimeEngine(Context<?> context)
RuntimeEngine
instance that is fully initialized:
context
- the concrete implementation of the context that is supported by given RuntimeManager
RuntimeEngine
String getIdentifier()
RuntimeManager
void disposeRuntimeEngine(RuntimeEngine runtime)
RuntimeEngine
and notifies all listeners about that fact.
This method should always be used to dispose RuntimeEngine
that is not needed
anymore. RuntimeEngine
was obtained within active JTA transaction,
this means that when getRuntimeEngine method was invoked during active JTA transaction then dispose of
the runtime engine will happen automatically on transaction completion.
runtime
- void close()
RuntimeManager
and releases it's resources. Shall always be called when
runtime manager is not needed any more. Otherwise it will still be active and operational.
|
KIE API 6.0.1.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |