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.

96 lines
2.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CBaseClusterCleanup.h
  7. //
  8. // Description:
  9. // Header file for CBaseClusterCleanup class.
  10. //
  11. // The CBaseClusterCleanup class is a class that encapsulates the
  12. // cleanup of a node after it has been evicted from a cluster.
  13. //
  14. // Implementation Files:
  15. // CBaseClusterCleanup.cpp
  16. //
  17. // Maintained By:
  18. // Vij Vasu (Vvasu) 29-APR-2000
  19. //
  20. //////////////////////////////////////////////////////////////////////////////
  21. // Make sure that this file is included only once per compile path.
  22. #pragma once
  23. //////////////////////////////////////////////////////////////////////////
  24. // Include Files
  25. //////////////////////////////////////////////////////////////////////////
  26. // For the base class of this class.
  27. #include "CBaseClusterAction.h"
  28. // For the CStr class.
  29. #include "CStr.h"
  30. //////////////////////////////////////////////////////////////////////////////
  31. //++
  32. //
  33. // class CBaseClusterCleanup
  34. //
  35. // Description:
  36. // The CBaseClusterCleanup class is a class that encapsulates the
  37. // cleanup of a node after it has been evicted from a cluster.
  38. //
  39. //--
  40. //////////////////////////////////////////////////////////////////////////////
  41. class CBaseClusterCleanup : public CBaseClusterAction
  42. {
  43. public:
  44. //////////////////////////////////////////////////////////////////////////
  45. // Constructors and destructors
  46. //////////////////////////////////////////////////////////////////////////
  47. // Constructor.
  48. CBaseClusterCleanup(
  49. CBCAInterface * pbcaiInterfaceIn
  50. );
  51. // Default destructor.
  52. ~CBaseClusterCleanup() throw();
  53. //////////////////////////////////////////////////////////////////////////
  54. // Public member functions
  55. //////////////////////////////////////////////////////////////////////////
  56. // Cleanup this node.
  57. void
  58. Commit();
  59. // Rolling back a cleanup operation.
  60. void
  61. Rollback();
  62. // Returns the number of progress messages that this action will send.
  63. UINT
  64. UiGetMaxProgressTicks() const throw()
  65. {
  66. return BaseClass::UiGetMaxProgressTicks();
  67. }
  68. private:
  69. //////////////////////////////////////////////////////////////////////////
  70. // Private types
  71. //////////////////////////////////////////////////////////////////////////
  72. typedef CBaseClusterAction BaseClass;
  73. //////////////////////////////////////////////////////////////////////////
  74. // Private data
  75. //////////////////////////////////////////////////////////////////////////
  76. }; //*** class CBaseClusterCleanup