Constants.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #if !defined(AFX_DEPLOYUTILS_CONSTANTS_HPP__INCLUDED_)
  14. #define AFX_DEPLOYUTILS_CONSTANTS_HPP__INCLUDED_
  15. //---------------------------------------------------------------------------
  16. #define BUILDSERVER "\\\\brpsnt082c\\builds"
  17. const char* const DEFAULT_BUILDNAME = "build_xxxx";
  18. const char* const DEFAULT_BUILDSETNAME = "buildset";
  19. const char* const DEFAULT_URL = BUILDSERVER"\\build_xxxx";
  20. const char* const DEFAULT_PATH = "";
  21. const char* const DEFAULT_INSTALLSET = "deploy_map.xml";
  22. const char* const DEFAULT_MODULENAME = "mod.lib";
  23. const char* const DEFAULT_FUNCTIONNAME = "func";
  24. //---------------------------------------------------------------------------
  25. // These must match the component icon bitmap
  26. //---------------------------------------------------------------------------
  27. enum COMPONENT_ICON {
  28. ICON_UNKNOWN=0,
  29. ICON_FOLDERCLOSED,
  30. ICON_FOLDEROPEN,
  31. ICON_DEFAULT,
  32. ICON_ECLSERVER,
  33. ICON_ECLAGENT,
  34. ICON_HOLE,
  35. ICON_THOR,
  36. ICON_TOPOLOGY,
  37. ICON_PLUGIN,
  38. ICON_SYBASE,
  39. ICON_ESPSERVER,
  40. ICON_JOBSERVER,
  41. ICON_INSTANCE
  42. };
  43. //---------------------------------------------------------------------------
  44. // These must match the hole process icon bitmap
  45. //---------------------------------------------------------------------------
  46. enum HOLE_ROLE {
  47. HOLE_TOPO=0,
  48. HOLE_NONE,
  49. HOLE_CTRL,
  50. HOLE_SOCK,
  51. HOLE_COLL,
  52. HOLE_PROC,
  53. HOLE_STBY,
  54. HOLE_UNKNOWN
  55. };
  56. const char* const g_szHoleProcess[] =
  57. { "", "", "Control", "Socket", "Collator", "Processor", "Standby", "Unkown" };
  58. //---------------------------------------------------------------------------
  59. // These must match the thor process icon bitmap
  60. //---------------------------------------------------------------------------
  61. enum THOR_ROLE {
  62. THOR_TOPO=0,
  63. THOR_NONE,
  64. THOR_MSTR,
  65. THOR_SLAV,
  66. THOR_SPAR,
  67. THOR_UNKNOWN
  68. };
  69. enum ROXIE_ROLE {
  70. ROXIE_TOPO=0,
  71. ROXIE_NONE,
  72. ROXIE_FARM,
  73. ROXIE_SERVER,
  74. ROXIE_SLAVE,
  75. ROXIE_UNKNOWN
  76. };
  77. const char* const g_szThorProcess[] =
  78. { "", "", "Master", "Slave", "Spare", "Unknown" };
  79. const char* const g_szRoxieProcess[] =
  80. { "", "Farm", "Server", "Slave", "Unknown" };
  81. //---------------------------------------------------------------------------
  82. //
  83. //---------------------------------------------------------------------------
  84. enum COMPUTER_STATE {
  85. STATE_UNAVAILABLE=0,
  86. STATE_AVAILABLE
  87. };
  88. const char* const g_szComputerState[] =
  89. { "Unavailable", "Available" };
  90. const int COMPUTER_STATE_COUNT = sizeof(g_szComputerState) / sizeof (g_szComputerState[0]);
  91. //---------------------------------------------------------------------------
  92. #endif // !defined(AFX_DEPLOYUTILS_CONSTANTS_HPP__INCLUDED_)