📄 actcontroller.mof
字号:
#pragma autorecover
#pragma namespace("\\root\\cimv2")
instance of __Namespace
{
Name = "Applications";
};
#pragma namespace("\\root\\cimv2\\applications")
instance of __Namespace
{
Name = "MicrosoftACT";
};
#pragma namespace("\\root\\cimv2\\applications\\MicrosoftACT")
//*******************************************************************************
// Event notifications for the consumer machines running the test
// now deriving a class for compatability with whistler
//*******************************************************************************
class ACT_NONCacheable : __Win32Provider
{
// [Description("Hosting Model, provides compatibility with Whistler. Do not override."), Override("HostingModel")] string HostingModel = "SelfHost";
[SUBTYPE("interval"): ToInstance, Override("UnloadTimeout")] datetime UnloadTimeout="00000000000000.000000:000";
};
Class ACT_BrokerBase : __ExtrinsicEvent
{
[key] uint32 EventIdentifier; //event identifier
[key] string EventGUID; //guid identifying this event
string TestGuid; //GUID for this particular test
datetime TimeGenerated; //the time generated/
string MachineName = "ALL"; //used similar to IsBroadcast, but will specify a specific machine for data events
};
//applies to the test
//EventIdentifier = 0
//does not go into a table, in memory settings
Class ACT_BrokerTestConfigEvent : ACT_BrokerBase
{
//all tests
[Values {"Start", "Pause", "Stop"}, Read]
sint32 eTestStatus; //test running status
};
//updateable values
//EventIdentifier = 1
//does not go into a table, in memory settings
Class ACT_BrokerUpdateTestConfigEvent : ACT_BrokerBase
{
[Values {"Start", "Stop"}, Read]
sint32 eTestStatus; //test running status
sint32 iTargetRPS; //playback requests per second, -1 == no change
};
//*******************************************************************************
// Event notifications for those monitoring the test
//*******************************************************************************
Class ACT_BrokerMessageBase : __ExtrinsicEvent
{
[key] uint32 EventIdentifier; //event identifier
[key] string EventGUID; //guid identifying this event
string TestGuid; //GUID for this particular test
datetime TimeGenerated; //the time generated
string MachineName;
};
//EventIdentifier = 3
Class ACT_BrokerMessageEvent : ACT_BrokerMessageBase
{
string MessageText;
string ComputerName;
[Values {"SEVERITY_SUCCESS", "SEVERITY_INFORMATIONAL", "SEVERITY_WARNING", "SEVERITY_ERROR"}, Read]
sint32 Severity;
[Values {"READY", "PENDING_START", "RUNNING", "PENDING_STOP", "STOPPED", "ABORTING"}, Read]
sint32 ControllerStatus;
};
//*******************************************************************************
//WMI Core stuff
//8/11/01 now using derived class
//*******************************************************************************
//instance of __Win32Provider
instance of ACT_NONCacheable as $EP
{
Name = "ACT_EventProvider";
CLSID = "{f9179622-0ee4-11d3-847d-0090271b539f}";
DefaultMachineName = NULL;
ClientLoadableCLSID = NULL;
ImpersonationLevel = 0;
PerUserInitialization = FALSE;
Pure = TRUE;
UnloadTimeout = NULL;
};
instance of __EventProviderRegistration
{
// provider = "__Win32Provider=\"ACT_EventProvider\"";
Provider = $EP;
EventQueryList = { "select * from ACT_BrokerBase",
"select * from ACT_BrokerMessageBase"};
};
//*******************************************************************************
//ACT Controller Methods Provider
//*******************************************************************************
//instance of __Win32Provider as $P
instance of ACT_NONCacheable as $P
{
Name = "ACTControllerMethodProvider" ;
ClsId = "{f9179623-0ee4-11d3-847d-0090271b539f}" ;
};
instance of __MethodProviderRegistration
{
Provider = $P;
};
[Dynamic, provider("ACTControllerMethodProvider")]
class ACTControllerMethodClass
{
[implemented, static]
uint32 StartTestWithID([IN]uint32 ScriptID, [IN]string dbServerName, [IN]string dbName, [IN]string dbUserName, [IN] string dbPassword, [out] string TestGuid);
[implemented, static]
uint32 StopTest([IN] string TestGuid);
[implemented, static]
uint32 IsTestRunning([IN] string Reserved);
[implemented, static]
uint32 Shutdown([IN] string Reserved);
[implemented, static]
void MessageNotification([IN] string MachineName, [IN] string MessageText, [IN] uint32 Severity);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -