mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
Add a decorator to handle the caching of objects stored to and/or read from persistence (bring over from pre-Angular branch.) Supports the WARP Telemetry Adapter; the absence of such a cache has been observed to result in significant latency in instantiating autoflow tabular views for packets. WTD-644. Also, include an empty test file to ensure that the added decorator is included in code coverage estimation (and to provide a location for tests to be written later.)
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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |