WsSMC.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*##############################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################## */
  16. define([
  17. "dojo/_base/declare",
  18. "hpcc/ESPRequest"
  19. ], function (declare,
  20. ESPRequest) {
  21. return {
  22. Activity: function (params) {
  23. return ESPRequest.send("WsSMC", "Activity", params);
  24. },
  25. PauseQueue: function (params) {
  26. return ESPRequest.send("WsSMC", "PauseQueue", params);
  27. },
  28. ResumeQueue: function (params) {
  29. return ESPRequest.send("WsSMC", "ResumeQueue", params);
  30. },
  31. ClearQueue: function (params) {
  32. return ESPRequest.send("WsSMC", "ClearQueue", params);
  33. },
  34. SetJobPriority: function (params) {
  35. return ESPRequest.send("WsSMC", "SetJobPriority", params);
  36. },
  37. MoveJobFront: function (params) {
  38. return ESPRequest.send("WsSMC", "MoveJobFront", params);
  39. },
  40. MoveJobUp: function (params) {
  41. return ESPRequest.send("WsSMC", "MoveJobUp", params);
  42. },
  43. MoveJobDown: function (params) {
  44. return ESPRequest.send("WsSMC", "MoveJobDown", params);
  45. },
  46. MoveJobBack: function (params) {
  47. return ESPRequest.send("WsSMC", "MoveJobBack", params);
  48. }
  49. };
  50. });