Commit 85cea18e by Johannes Edmeier

Add ignoreErrors to jolokia request

With this commit the ignoreErrors=true is set for non-modifying operations as search, list and read. fixes #374
parent e9059795
...@@ -96,7 +96,8 @@ module.exports = function ($q) { ...@@ -96,7 +96,8 @@ module.exports = function ($q) {
this.read = function (url, mbean) { this.read = function (url, mbean) {
return outer.request(url, { return outer.request(url, {
type: 'read', type: 'read',
mbean: mbean mbean: mbean,
config: { ignoreErrors: true }
}); });
}; };
...@@ -104,7 +105,8 @@ module.exports = function ($q) { ...@@ -104,7 +105,8 @@ module.exports = function ($q) {
return outer.request(url, { return outer.request(url, {
type: 'read', type: 'read',
mbean: mbean, mbean: mbean,
attribute: attr attribute: attr,
config: { ignoreErrors: true }
}); });
}; };
...@@ -119,14 +121,16 @@ module.exports = function ($q) { ...@@ -119,14 +121,16 @@ module.exports = function ($q) {
this.list = function (url) { this.list = function (url) {
return outer.request(url, { return outer.request(url, {
type: 'list' type: 'list',
config: { ignoreErrors: true }
}); });
}; };
this.search = function (url, mbean) { this.search = function (url, mbean) {
return outer.request(url, { return outer.request(url, {
type: 'search', type: 'search',
mbean: mbean mbean: mbean,
config: { ignoreErrors: true }
}); });
}; };
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment