| com.pnfsoftware.jeb.core.IEnginesContext |
A context for JEB engines. Engines produce events and relay events from other components under their supervision. The primary task of JEB engines is to manage projects.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
close()
Close the context.
| ||||||||||
| abstract IDataProvider |
getDataProvider()
Get a reference to the DAO.
| ||||||||||
| abstract List<IEnginesPlugin> |
getEnginesPlugins()
Retrieve a list of engines plugins (internal plugins, third party plugins).
| ||||||||||
| abstract ExecutorService |
getExecutorService()
Get the executor service used by this context.
| ||||||||||
| abstract IRuntimeProject |
getProject(String key)
Get a project by key.
| ||||||||||
| abstract IRuntimeProject |
getProject(int index)
Get a project by index.
| ||||||||||
| abstract List<IRuntimeProject> |
getProjects()
Retrieve a copy of the list of projects currently loaded within this context.
| ||||||||||
| abstract IPropertyManager |
getPropertyManager()
Get the property manager for this engines context.
| ||||||||||
| abstract List<IUnitIdentifier> |
getUnitIdentifiers()
The list of identifiers that projects managed by this context may have access to.
| ||||||||||
| abstract boolean |
isIdentifierEnabled(IUnitIdentifier identifier)
Determine if an identifier is enabled.
| ||||||||||
| abstract IRuntimeProject |
loadProject(String key)
Load an existing project or create a new project.
| ||||||||||
| abstract boolean |
saveProject(String key)
Save the state of a project (including artifacts and all units) to the project database.
| ||||||||||
| abstract void |
setIdentifierEnabled(IUnitIdentifier identifier, boolean enabled)
Enable or disable an identifier.
| ||||||||||
| abstract boolean |
unloadProject(String key)
Unload a project.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.util.events.IEventSource
| |||||||||||
Close the context. All projects will be unloaded; changes will not be persisted.
Get a reference to the DAO.
Retrieve a list of engines plugins (internal plugins, third party plugins).
Get the executor service used by this context. Clients may use it to schedule third-party tasks.
Get a project by key.
| key | mandatory project key |
|---|
Get a project by index.
| index | 0-based index |
|---|
Retrieve a copy of the list of projects currently loaded within this context.
Get the property manager for this engines context.
The list of identifiers that projects managed by this context may have access to.
Determine if an identifier is enabled.
| identifier | the identifier |
|---|
Load an existing project or create a new project.
| key | an existing or new project key |
|---|
| IOException | on IO error |
|---|---|
| JebSerializationException | on serialization error |
Save the state of a project (including artifacts and all units) to the project database. If the project DB is backed up by a filesystem, the project will be persisted to a ".jdb2" file.
| key | the project key |
|---|
| IOException | on IO error |
|---|---|
| JebSerializationException | on deserialization error |
Enable or disable an identifier.
| identifier | the identifier |
|---|---|
| enabled | true to enable the identifier, false otherwise; in the latter case,
will never get called
|
Unload a project.
| key | the project key |
|---|