mirror of
https://github.com/nasa/openmct.git
synced 2025-04-16 15:29:20 +00:00
[Docs] ElasticSearch is not Couch
This commit is contained in:
parent
3a050cc5b8
commit
1e332da11b
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Couch Persistence",
|
||||
"description": "Adapter to read and write objects using a CouchDB instance.",
|
||||
"name": "ElasticSearch Persistence",
|
||||
"description": "Adapter to read and write objects using an ElasticSearch instance.",
|
||||
"extensions": {
|
||||
"components": [
|
||||
{
|
||||
|
@ -46,15 +46,15 @@ define(
|
||||
};
|
||||
|
||||
/**
|
||||
* Indicator for the current CouchDB connection. Polls CouchDB
|
||||
* at a regular interval (defined by bundle constants) to ensure
|
||||
* that the database is available.
|
||||
* Indicator for the current ElasticSearch connection. Polls
|
||||
* ElasticSearch at a regular interval (defined by bundle constants)
|
||||
* to ensure that the database is available.
|
||||
* @constructor
|
||||
* @memberof platform/persistence/elastic
|
||||
* @implements {Indicator}
|
||||
* @param $http Angular's $http service
|
||||
* @param $interval Angular's $interval service
|
||||
* @param {string} path the URL to poll to check for couch availability
|
||||
* @param {string} path the URL to poll for elasticsearch availability
|
||||
* @param {number} interval the interval, in milliseconds, to poll at
|
||||
*/
|
||||
function ElasticIndicator($http, $interval, path, interval) {
|
||||
@ -63,7 +63,7 @@ define(
|
||||
|
||||
this.state = PENDING;
|
||||
|
||||
// Callback if the HTTP request to Couch fails
|
||||
// Callback if the HTTP request to ElasticSearch fails
|
||||
function handleError() {
|
||||
self.state = DISCONNECTED;
|
||||
}
|
||||
@ -73,7 +73,7 @@ define(
|
||||
self.state = CONNECTED;
|
||||
}
|
||||
|
||||
// Try to connect to CouchDB, and update the indicator.
|
||||
// Try to connect to ElasticSearch, and update the indicator.
|
||||
function updateIndicator() {
|
||||
$http.get(path).then(handleResponse, handleError);
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ define(
|
||||
return this.$q.reject(error);
|
||||
};
|
||||
|
||||
// Get a domain object model out of CouchDB's response
|
||||
// Get a domain object model out of ElasticSearch's response
|
||||
function getModel(response) {
|
||||
if (response && response[SRC]) {
|
||||
this.revs[response[ID]] = response[REV];
|
||||
|
Loading…
x
Reference in New Issue
Block a user