...
...
Note |
---|
Note that many of these goals are just goals for now and are in the process of being implemented. |
A resource provider provides access to a specific set of resources from a particular storage technology. For example, a file system directory of resource files or a collection of tables.
Children Display | ||||
---|---|---|---|---|
|
Children Display | ||||
---|---|---|---|---|
|
Note |
---|
Note that only the FileSystem implementation is provided as part of the core system. Others are provided in separate Jar files which specifically included on the class path when needed. |
The "type" parameter is used in resource configuration to locate the resource provider class. for example:
...
Code Block | ||||
---|---|---|---|---|
| ||||
"type":"FileSystem" |
or
...
Code Block | ||||
---|---|---|---|---|
| ||||
"type":"com.accenture.saga.resourcemgr.filesystem.FileSystemProvider" |
The type parameter is used to locate the class using the following steps:
If the type parameter has periods in it
Try and look for the class as specified
For example: com.accenture.saga.resourcemgr.filesystem.FileSystemProvider
Otherwise:
Try and find the class in the "com.accenture.saga.resourcemgr.filesystem" package
For example: "FileSystemProvider" → "com.accenture.saga.resourcemgr.filesystem.FileSystemProvider"
Try and find the class with a "Provider" suffix in the "com.accenture.saga.resourcemgr.filesystem" package
For example: "FileSystem" → "com.accenture.saga.resourcemgr.filesystem.FileSystemProvider"
Currently, there are three types of resources defined:
...
The following is a sample resource providers configuration:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "providers": [ { "name":"pipeline-provider", "type":"FileSystem", "baseDir":"config" }, { "name":"dict-provider", "type":"MongoDB", "uri":"mongodb://localhost:12345", "database":"dictionaries" } ] } |
...