public final class WorkingMemoryDataStores extends Object implements DataStores<String,org.drools.StatefulSession>
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_NAME |
| Constructor and Description |
|---|
WorkingMemoryDataStores(org.drools.RuleBase ruleBase,
String directory)
Constructs a working memory creator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.eurekaclinical.datastore.DataStore<String,org.drools.StatefulSession> |
getDataStore(String name)
Returns a permanent store with the given name.
|
public static final String DATABASE_NAME
public WorkingMemoryDataStores(org.drools.RuleBase ruleBase,
String directory)
ruleBase - the Drools rule base from which working memory objects
are generated. Cannot be null.directory - the directory in which the working memory data stores
will be stored. Cannot be null.public org.eurekaclinical.datastore.DataStore<String,org.drools.StatefulSession> getDataStore(String name) throws IOException
DataStoresgetDataStore in interface DataStores<String,org.drools.StatefulSession>name - the name of the store, or null if no store
exists with the given name.DataStore backed by a permanent store implementationIOException - if an error occurred getting/creating the
data store.public void close()
throws IOException
close in interface AutoCloseableclose in interface DataStores<String,org.drools.StatefulSession>IOExceptionCopyright © 2012–2018 Emory University. All rights reserved.