Source code of Windows XP (NT5)
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.

125 lines
3.6 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // AsyncEvictCleanup.h
  7. //
  8. // Description:
  9. // This file contains the declaration of the CAsyncEvictCleanup
  10. // class. This class handles is used to clean up a node after it has been
  11. // evicted from a cluster.
  12. //
  13. // Documentation:
  14. // TODO: fill in pointer to external documentation
  15. //
  16. // Implementation Files:
  17. // AsyncEvictCleanup.cpp
  18. //
  19. // Maintained By:
  20. // Galen Barbee (GalenB) 04-AUG-2000
  21. //
  22. //////////////////////////////////////////////////////////////////////////////
  23. // Make sure that this file is included only once per compile path.
  24. #pragma once
  25. //////////////////////////////////////////////////////////////////////////////
  26. // Include Files
  27. //////////////////////////////////////////////////////////////////////////////
  28. // For IUnknown
  29. #include <unknwn.h>
  30. // For IClusCfgAsyncEvictCleanup
  31. #include "ClusCfgClient.h"
  32. //////////////////////////////////////////////////////////////////////////////
  33. //++
  34. //
  35. // class CAsyncEvictCleanup
  36. //
  37. // Description:
  38. // This class handles is used to clean up a node after it has been
  39. // evicted from a cluster.
  40. //
  41. //--
  42. //////////////////////////////////////////////////////////////////////////////
  43. class CAsyncEvictCleanup
  44. : public IClusCfgAsyncEvictCleanup
  45. {
  46. public:
  47. //////////////////////////////////////////////////////////////////////////
  48. // IUnknown methods
  49. //////////////////////////////////////////////////////////////////////////
  50. STDMETHOD( QueryInterface )( REFIID riid, void ** ppvObject );
  51. STDMETHOD_( ULONG, AddRef )( void );
  52. STDMETHOD_( ULONG, Release )( void );
  53. //////////////////////////////////////////////////////////////////////////
  54. // IClusCfgAsyncEvictCleanup methods
  55. //////////////////////////////////////////////////////////////////////////
  56. // Performs the clean up actions on a node after it has been evicted from
  57. // a cluster
  58. STDMETHOD( CleanupNode )(
  59. LPCWSTR pcszEvictedNodeNameIn
  60. , DWORD dwDelayIn
  61. , DWORD dwTimeoutIn
  62. );
  63. //////////////////////////////////////////////////////////////////////////
  64. // Other public methods
  65. //////////////////////////////////////////////////////////////////////////
  66. // Create an instance of this class.
  67. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  68. private:
  69. //////////////////////////////////////////////////////////////////////////
  70. // Private member functions
  71. //////////////////////////////////////////////////////////////////////////
  72. // Second phase of a two phase constructor.
  73. HRESULT HrInit( void );
  74. //
  75. // Private constructors, destructor and assignment operator.
  76. // All of these methods are private for two reasons:
  77. // 1. Lifetimes of objects of this class are controlled by S_HrCreateInstance and Release.
  78. // 2. Copying of an object of this class is prohibited.
  79. //
  80. // Default constructor.
  81. CAsyncEvictCleanup( void );
  82. // Destructor.
  83. ~CAsyncEvictCleanup( void );
  84. // Copy constructor.
  85. CAsyncEvictCleanup( const CAsyncEvictCleanup & );
  86. // Assignment operator.
  87. CAsyncEvictCleanup & operator =( const CAsyncEvictCleanup & );
  88. //////////////////////////////////////////////////////////////////////////
  89. // Private member data
  90. //////////////////////////////////////////////////////////////////////////
  91. // Reference count for this object.
  92. LONG m_cRef;
  93. // Pointer to the IDispatchInterface punk.
  94. IUnknown * m_punkStdDisp;
  95. }; //*** class CAsyncEvictCleanup