mirror of
https://github.com/nasa/openmct.git
synced 2025-03-10 22:43:55 +00:00
Move persistence sources into a deeper bundle in preparation for splitting of persistence into two bundles - one specific to the Couch adapter, and one for persistence caching generally. This supports WTD-702, the WARP persistence adapter, which will not use Couch for persistence but which will want to use the platform- provided persistence cache.
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "Couch Persistence",
|
|
"description": "Adapter to read and write objects using a CouchDB instance.",
|
|
"extensions": {
|
|
"components": [
|
|
{
|
|
"provides": "persistenceService",
|
|
"type": "provider",
|
|
"implementation": "CouchPersistenceProvider.js",
|
|
"depends": [ "$http", "$q", "PERSISTENCE_SPACE", "COUCHDB_PATH" ]
|
|
},
|
|
{
|
|
"provides": "persistenceService",
|
|
"type": "decorator",
|
|
"implementation": "CachingPersistenceDecorator.js",
|
|
"depends": [ "PERSISTENCE_SPACE" ]
|
|
}
|
|
],
|
|
"constants": [
|
|
{
|
|
"key": "PERSISTENCE_SPACE",
|
|
"value": "mct"
|
|
},
|
|
{
|
|
"key": "COUCHDB_PATH",
|
|
"value": "/couch/openmct"
|
|
},
|
|
{
|
|
"key": "COUCHDB_INDICATOR_INTERVAL",
|
|
"value": 15000
|
|
}
|
|
],
|
|
"indicators": [
|
|
{
|
|
"implementation": "CouchIndicator.js",
|
|
"depends": [
|
|
"$http",
|
|
"$interval",
|
|
"COUCHDB_PATH",
|
|
"COUCHDB_INDICATOR_INTERVAL"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |