64 lines
2.2 KiB
C
64 lines
2.2 KiB
C
|
#ifndef _CLUSTERSETTING_INCLUDED_
|
||
|
#define _CLUSTERSETTING_INCLUDED_
|
||
|
|
||
|
#include "WLBS_Root.h"
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// class CWLBS_ClusterSetting
|
||
|
//
|
||
|
// Purpose: This class executes IWbemServices methods on behalf of the provider
|
||
|
// and supports the MOF node configuration class.
|
||
|
|
||
|
//
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
class CWLBS_ClusterSetting : public CWlbs_Root
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
CWLBS_ClusterSetting(CWbemServices* a_pNameSpace, IWbemObjectSink* a_pResponseHandler);
|
||
|
|
||
|
static CWlbs_Root* Create(
|
||
|
CWbemServices* a_pNameSpace,
|
||
|
IWbemObjectSink* a_pResponseHandler
|
||
|
);
|
||
|
|
||
|
HRESULT GetInstance(
|
||
|
const ParsedObjectPath* a_pParsedPath,
|
||
|
long a_lFlags = 0,
|
||
|
IWbemContext* a_pIContex = NULL
|
||
|
);
|
||
|
|
||
|
HRESULT EnumInstances(
|
||
|
BSTR a_bstrClass = NULL,
|
||
|
long a_lFlags = 0,
|
||
|
IWbemContext* a_pIContex = NULL
|
||
|
);
|
||
|
|
||
|
HRESULT PutInstance(
|
||
|
IWbemClassObject* a_pInstance,
|
||
|
long a_lFlags = 0,
|
||
|
IWbemContext* a_pIContex = NULL
|
||
|
);
|
||
|
|
||
|
HRESULT ExecMethod(
|
||
|
const ParsedObjectPath* a_pParsedPath,
|
||
|
const BSTR& a_strMethodName,
|
||
|
long a_lFlags = 0,
|
||
|
IWbemContext* a_pIContex = NULL,
|
||
|
IWbemClassObject* a_pIInParams = NULL
|
||
|
);
|
||
|
|
||
|
private:
|
||
|
|
||
|
void FillWbemInstance( IWbemClassObject* a_pWbemInstance,
|
||
|
CWlbsClusterWrapper* pCluster);
|
||
|
|
||
|
void UpdateConfiguration( IWbemClassObject* a_pInstance,
|
||
|
CWlbsClusterWrapper* pCluster);
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif //_CLUSTERSETTING_INCLUDED_
|