Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.9 KiB

  1. #ifndef CONTROLWRAPPER_H
  2. #define CONTROLWRAPPER_H
  3. #include "wlbsparm.h"
  4. #include "wlbsiocl.h"
  5. #include "control.h"
  6. class CWlbsControlWrapper
  7. {
  8. friend class CWlbsClusterWrapper;
  9. public:
  10. CWlbsClusterWrapper* GetClusterFromIpOrIndex(DWORD dwClusterIpOrIndex)
  11. {
  12. return (CWlbsClusterWrapper*)m_WlbsControl.GetClusterFromIpOrIndex(
  13. dwClusterIpOrIndex);
  14. }
  15. void EnumClusters(CWlbsClusterWrapper** & ppCluster, DWORD* pdwNumClusters);
  16. void CheckMembership();
  17. void Initialize();
  18. void ReInitialize();
  19. DWORD Disable
  20. (
  21. DWORD a_dwCluster ,
  22. DWORD a_dwHost ,
  23. WLBS_RESPONSE* a_pResponse ,
  24. DWORD& a_dwNumHosts ,
  25. DWORD a_dwVip,
  26. DWORD a_dwPort
  27. );
  28. DWORD Enable
  29. (
  30. DWORD a_dwCluster ,
  31. DWORD a_dwHost ,
  32. WLBS_RESPONSE* a_pResponse ,
  33. DWORD& a_dwNumHosts ,
  34. DWORD a_dwVip,
  35. DWORD a_dwPort
  36. );
  37. DWORD Drain
  38. (
  39. DWORD a_dwCluster ,
  40. DWORD a_dwHost ,
  41. WLBS_RESPONSE* a_pResponse ,
  42. DWORD& a_dwNumHosts ,
  43. DWORD a_dwVip,
  44. DWORD a_dwPort
  45. );
  46. DWORD DrainStop
  47. (
  48. DWORD a_dwCluster ,
  49. DWORD a_dwHost ,
  50. WLBS_RESPONSE* a_pResponse ,
  51. DWORD& a_dwNumHosts
  52. );
  53. DWORD Start
  54. (
  55. DWORD a_dwCluster ,
  56. DWORD a_dwHost ,
  57. WLBS_RESPONSE* a_pResponse ,
  58. DWORD& a_dwNumHosts
  59. );
  60. DWORD Stop
  61. (
  62. DWORD a_dwCluster ,
  63. DWORD a_dwHost ,
  64. WLBS_RESPONSE* a_pResponse ,
  65. DWORD& a_dwNumHosts
  66. );
  67. DWORD Suspend
  68. (
  69. DWORD a_dwCluster ,
  70. DWORD a_dwHost ,
  71. WLBS_RESPONSE* a_pResponse ,
  72. DWORD& a_dwNumHosts
  73. );
  74. DWORD Resume
  75. (
  76. DWORD a_dwCluster ,
  77. DWORD a_dwHost ,
  78. WLBS_RESPONSE* a_pResponse ,
  79. DWORD& a_dwNumHosts
  80. );
  81. DWORD Query
  82. (
  83. CWlbsClusterWrapper* pCluster,
  84. DWORD a_dwHost ,
  85. WLBS_RESPONSE * a_pResponse ,
  86. WLBS_RESPONSE * a_pComputerNameResponse,
  87. PDWORD a_pdwNumHosts ,
  88. PDWORD a_pdwHostMap
  89. );
  90. DWORD WlbsQueryState
  91. (
  92. DWORD cluster,
  93. DWORD host,
  94. DWORD operation,
  95. PNLB_OPTIONS pOptions,
  96. PWLBS_RESPONSE pResponse,
  97. PDWORD pcResponses
  98. );
  99. protected:
  100. CWlbsControl m_WlbsControl;
  101. };
  102. #endif //CONTROLWRAPPER_H