windows-nt/Source/XPSP1/NT/net/wlbs/wmi/controlwrapper.h

100 lines
2.5 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef CONTROLWRAPPER_H
#define CONTROLWRAPPER_H
#include "wlbsparm.h"
#include "wlbsiocl.h"
#include "control.h"
class CWlbsControlWrapper
{
friend class CWlbsClusterWrapper;
public:
CWlbsClusterWrapper* GetClusterFromIpOrIndex(DWORD dwClusterIpOrIndex)
{
return (CWlbsClusterWrapper*)m_WlbsControl.GetClusterFromIpOrIndex(
dwClusterIpOrIndex);
}
void EnumClusters(CWlbsClusterWrapper** & ppCluster, DWORD* pdwNumClusters);
void CheckMembership();
void Initialize();
void ReInitialize();
DWORD Disable
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts ,
DWORD a_dwVip,
DWORD a_dwPort
);
DWORD Enable
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts ,
DWORD a_dwVip,
DWORD a_dwPort
);
DWORD Drain
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts ,
DWORD a_dwVip,
DWORD a_dwPort
);
DWORD DrainStop
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts
);
DWORD Start
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts
);
DWORD Stop
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts
);
DWORD Suspend
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts
);
DWORD Resume
(
DWORD a_dwCluster ,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
DWORD& a_dwNumHosts
);
DWORD Query
(
CWlbsClusterWrapper* pCluster,
DWORD a_dwHost ,
WLBS_RESPONSE* a_pResponse ,
PDWORD a_pdwNumHosts ,
PDWORD a_pdwHostMap
);
protected:
CWlbsControl m_WlbsControl;
};
#endif //CONTROLWRAPPER_H