WsTopology.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*##############################################################################
  2. # Copyright (C) 2011 HPCC Systems.
  3. #
  4. # All rights reserved. This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU Affero General Public License as
  6. # published by the Free Software Foundation, either version 3 of the
  7. # License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU Affero General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Affero General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. ############################################################################## */
  17. define([
  18. "dojo/_base/declare",
  19. "dojo/_base/lang",
  20. "dojo/_base/xhr",
  21. "dojo/_base/Deferred",
  22. "dojo/store/util/QueryResults",
  23. "hpcc/ESPBase",
  24. "hpcc/ESPRequest"
  25. ], function (declare, lang, xhr, Deferred, QueryResults,
  26. ESPBase, ESPRequest) {
  27. return {
  28. TpServiceQuery: function (params) {
  29. lang.mixin(params.request, {
  30. Type: "ALLSERVICES"
  31. });
  32. return ESPRequest.send("WsTopology", "TpServiceQuery", params);
  33. },
  34. TpTargetClusterQuery: function (params) {
  35. return ESPRequest.send("WsTopology", "TpTargetClusterQuery", params);
  36. },
  37. TpGroupQuery: function (params) {
  38. return ESPRequest.send("WsTopology", "TpGroupQuery", params);
  39. },
  40. TpLogicalClusterQuery: function (params) {
  41. return ESPRequest.send("WsTopology", "TpLogicalClusterQuery", params);
  42. }
  43. };
  44. });