public interface KieSessionModel
KieSession
Modifier and Type | Interface and Description |
---|---|
static class |
KieSessionModel.KieSessionType |
Modifier and Type | Method and Description |
---|---|
BeliefSystemTypeOption |
getBeliefSystem()
Returns the BeliefSystemType of this KieSessionModel
|
ClockTypeOption |
getClockType()
Returns the ClockType of this KieSessionModel
|
String |
getConsoleLogger()
Returns the name of the ConsoleLogger if any
|
FileLoggerModel |
getFileLogger()
Returns the FileLoggerModel registered on this KieSessionModel if any
|
KieBaseModel |
getKieBaseModel()
Returns the KieBaseModel which this KieSessionModel belongs to
|
List<ListenerModel> |
getListenerModels()
Returns all the ListenerModels defined for this KieSessionModel
|
String |
getName()
Returns the name of the KieSession defined by this KieSessionModel
|
String |
getScope()
Returns the CDI scope of this KieSessionModel
|
KieSessionModel.KieSessionType |
getType()
Returns the type of this KieSessionModel
|
List<WorkItemHandlerModel> |
getWorkItemHandlerModels()
Returns all the WorkItemHandlerModels defined for this KieSessionModel
|
boolean |
isDefault()
Returns true if this KieSessionModel is the default one
|
ListenerModel |
newListenerModel(String type,
ListenerModel.Kind kind)
Creates a new ListenerModel of the given type (i.e. the name of the class implementing it)
and kind and add it to this KieSessionModel
|
WorkItemHandlerModel |
newWorkItemHandlerModel(String name,
String type)
Creates a new WorkItemHandlerModel of the given type (i.e. the name of the class implementing it)
and add it to this KieSessionModel
|
KieSessionModel |
setBeliefSystem(BeliefSystemTypeOption beliefSystem)
Sets the BeliefSystem for this KieSessionModel.
|
KieSessionModel |
setClockType(ClockTypeOption clockType)
Sets the ClockType for this KieSessionModel.
|
KieSessionModel |
setConsoleLogger(String consoleLogger)
Sets a ConsoleLogger with the given name
|
KieSessionModel |
setDefault(boolean isDefault)
Sets the KieSession generated from this KieSessionModel as the default one,
i.e. the one that can be loaded from the KieContainer without having to pass its name.
|
KieSessionModel |
setFileLogger(String fileName)
Sets a non-threaded FileLogger with the given name and 30 seconds of logging interval
|
KieSessionModel |
setFileLogger(String fileName,
int interval,
boolean threaded)
Sets a FileLogger with the given name, threaded behavior and logging interval
|
KieSessionModel |
setScope(String scope)
Sets the CDI scope for this KieSessionModel
Default is javax.enterprise.context.ApplicationScoped
|
KieSessionModel |
setType(KieSessionModel.KieSessionType type)
Sets the type for this KieSessionModel.
|
String getName()
KieSessionModel.KieSessionType getType()
KieSessionModel setType(KieSessionModel.KieSessionType type)
ClockTypeOption getClockType()
KieSessionModel setClockType(ClockTypeOption clockType)
BeliefSystemTypeOption getBeliefSystem()
KieSessionModel setBeliefSystem(BeliefSystemTypeOption beliefSystem)
ListenerModel newListenerModel(String type, ListenerModel.Kind kind)
List<ListenerModel> getListenerModels()
WorkItemHandlerModel newWorkItemHandlerModel(String name, String type)
List<WorkItemHandlerModel> getWorkItemHandlerModels()
KieSessionModel setScope(String scope)
String getScope()
String getConsoleLogger()
KieSessionModel setConsoleLogger(String consoleLogger)
FileLoggerModel getFileLogger()
KieSessionModel setFileLogger(String fileName)
KieSessionModel setFileLogger(String fileName, int interval, boolean threaded)
boolean isDefault()
KieSessionModel setDefault(boolean isDefault)
KieBaseModel getKieBaseModel()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.