%WebStress.Control
Class %WebStress.Control Extends (%Persistent, %XML.Adaptor) [ Inheritance = right, System = 4 ]
Properties
RunNumber
Property RunNumber As %Integer;
Incremental number associated with each test
Test
Property Test As %String(TRUNCATE = 1);
The test identifier
Status
Property Status As %String(DISPLAYLIST = ",Unknown,Preparing,Waiting,Warmup,Recording,Cooldown,Stopping,Stopped,Error", TRUNCATE = 1, VALUELIST = ",0,1,2,3,4,5,6,7,8") [ InitialExpression = 0 ];
The status code associated with the test
ErrorText
Property ErrorText As %String(MAXLEN = 255, TRUNCATE = 1);
A description of the last error
Progress
Property Progress As array Of %WebStress.Control.Progress;
An array containing the progress of the test preparation
AppServerStatus
Property AppServerStatus As array Of %WebStress.Control.AppServers;
An array constructed when the encryption flag is being changed on the application servers
ProcessStatus
Property ProcessStatus As array Of %WebStress.Control.Processes;
An array showing the number of processes started on each generator
GeneratorStatus
Property GeneratorStatus As array Of %WebStress.Control.GeneratorStatus;
Shows the control status on each generator
Jobs
Property Jobs As array Of %String(TRUNCATE = 1);
The list of jobs running on a generator
MonitorJob
Property MonitorJob As %String(TRUNCATE = 1);
The job number of the monitor process
SystemIdentifier
Property SystemIdentifier As %String(TRUNCATE = 1);
A string uniquely identifying this system (hostname_namespace_manager's directory)
TimeDiff
Property TimeDiff As %Integer;
The time difference (secs) between the starting machine and the other generators
TimeStart
Property TimeStart As %TimeStamp;
TimeStop
Property TimeStop As %TimeStamp;
RunDescription
Property RunDescription As %String(TRUNCATE = 1);
A description of this run
Methods
StartPrepare
ClassMethod StartPrepare(testID As %String, runDescription As %String) As %String
Prepare
ClassMethod Prepare(testID As %String, runDescription As %String) As %Status
CheckGeneratorRunStatus
ClassMethod CheckGeneratorRunStatus(testID) As %Status
CheckGeneratorIsRunning
ClassMethod CheckGeneratorIsRunning(testID As %String) As %Status
GetGeneratorDetails
ClassMethod GetGeneratorDetails(testID As %String, ByRef generators As %String) As %Status
GeneratorRunStatus
ClassMethod GeneratorRunStatus(testID As %String, senderID As %String) As %WebStress.Control.GeneratorStatus
GeneratorIsRunning
ClassMethod GeneratorIsRunning(testID As %String, senderID As %String) As %WebStress.Control.GeneratorStatus
SetAppEncrypt
ClassMethod SetAppEncrypt(testID As %String, value As %Integer) As %Status
GetAppServerStats
ClassMethod GetAppServerStats(testID As %Integer, runID As %Integer, ByRef appServerStats As %String)
SetError
ClassMethod SetError(testID As %String, status As %String, message As %String)
SetProgress
ClassMethod SetProgress(testID As %String, message As %String)
GeneratorProcs
ClassMethod GeneratorProcs(testID As %String, runNumber As %Integer, runDescription As %String) As %Status
StartProcs
ClassMethod StartProcs(testID As %String, runNumber As %Integer, param As %Integer, senderID As %String, senderTime As %Integer) As %WebStress.Control
This prepares all the background processes ready for the test
StartMonitor
ClassMethod StartMonitor(runNumber As %Integer, testID As %String, senderID As %String, runDescription As %String) As %String
Monitor
ClassMethod Monitor(runNumber As %Integer, testID As %String, senderID As %String, runDescription As %String)
This is the background process that will monitor the progress of the run
RunningCount
ClassMethod RunningCount(testID) As %Integer
GetMaxRunNumber
ClassMethod GetMaxRunNumber(testID As %String) As %Integer
TestStart
ClassMethod TestStart(testID As %String) As %Status
TestStop
ClassMethod TestStop(testID As %String) As %Status
SystemID
ClassMethod SystemID() As %String
AnyTestsRunning
ClassMethod AnyTestsRunning() As %Integer
GetErrors
ClassMethod GetErrors(testID As %String, runID As %Integer, scriptID As %String) As %GlobalCharacterStream
BuildResultIterations
ClassMethod BuildResultIterations(TestID As %Integer, RunID As %Integer, desc As %String = "")
SavePage
ClassMethod SavePage(saveDir As %String, scriptID As %Integer, iteration As %Integer, url As %String, response As %Stream.GlobalCharacter)
Clean
ClassMethod Clean() As %Status