Taxonomy Categories:
Member Functions:
Interface Category:
Developer Tool Programmer Interface.
Inherits From:
MRemoteCaller
Inherited By:
None.
Purpose:
A Communications caller class that allows a client to run tests in a different address space or on a different machine.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive from this class.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TRemoteTestCaller ()
- TRemoteTestCaller (TRemoteCallerTransport * theTransport)
- TRemoteTestCaller (const TRemoteTestCaller &)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
- Default constructor.
- Constructor which takes caller transport.
- Copy constructor.
Calling Context:
- Called by the stream-in operators and RunTest.
- Called by RunTest.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TRemoteTestCaller & operator =(const TRemoteTestCaller &)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TRemoteTestCaller ()
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TTest * NewRun (const TTest & testToRun)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Streams a test to the dispatcher, runs it within the dispatcher, then streams it back.
Calling Context:
Called by RunTest and directly.
Parameters:
- const TTest & testToRun -The test to be run in the dispatcher.
Return Value:
Returns the test after it is run.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- virtual TTest * Run (const TText & commandLine)
- virtual TTest * Run (const TSequenceOf < TText > & commandArgs)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
- Streams the given <commandLine> to the dispatcher. The dispatcher instantiates a test using the command line, runs it, and streams it back to Run.
- Streams the given <commandArgs> to the dispatcher. The dispatcher instantiates a test using the command args, runs it, and streams it back to Run. If the command args are bad, 0 is streamed back.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- const TText & commandLine -The command line that specifies the test to run.
- const TSequenceOf < TText > & commandArgs -The command arguments that specify the test to run.
Return Value:
Returns the test that was run.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- virtual void Queue (TTest & testToQueue)
- virtual void Queue (const TText & commandLine)
- virtual void Queue (const TSequenceOf < TText > & commandArgs)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
- Adds the test to the end of the queue of tests to be run.
- Instantiates the test by name using the given command line and adds the test to the end of the queue of tests to be run.
- Instantiates the test by name using the given command arguments and adds the test to the end of the queue of tests to be run.
Calling Context:
- Called by RunTest and directly.
- Call this function directly.
- Call this function directly.
Parameters:
- TTest & testToQueue -The test to be queued.
- const TText & commandLine -The command line that specifies the test to be queued.
- const TSequenceOf < TText > & commandArgs -The command arguments that specify the test to be queued.
Return Value:
None.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long GetQueueLength ()
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Gets number of queued tests.
Calling Context:
Called by test dispatcher and directly.
Parameters:
Return Value:
Returns the number of queued tests.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void CopyQueue (TSequenceOf < TTest > &)
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Copies the tests in the queue to the given collection.
Calling Context:
Call this function directly.
Parameters:
- TSequenceOf < TTest > & -The tests in the queue to be copied to the given collection.
Return Value:
None.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void TerminateServer ()
Interface Category:
Developer Tool Programmer Interface.
Purpose:
Terminates the server that is handling the requests.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws TStandardException if unable to get transport to the dispatcher.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.