Class: TInstalledTestServer

Declaration: InstalledTestServer.h

Taxonomy Categories:

Member Functions:


Interface Category:

Developer Tool Programmer Interface.

Inherits From:

TThreadProgram

Inherited By:

None.

Purpose:

Thread program that can be used to install a test server as a separate thread in the current task.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Use TInstalledTestServer directly. Do not derive.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TInstalledTestServer::TInstalledTestServer

  1. TInstalledTestServer ()
  2. TInstalledTestServer (const TText & serverName)
  3. TInstalledTestServer (const TInstalledTestServer & source)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

  1. Default constructor.
  2. Constructor that takes the name of the test server.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called by the Test framework and directly.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TInstalledTestServer::~TInstalledTestServer

virtual ~ TInstalledTestServer ()

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.

Member Function: TInstalledTestServer::operator=

TInstalledTestServer & operator =(const TInstalledTestServer & other)

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.

Member Function: TInstalledTestServer::operator<<=

virtual TStream & operator <<= (TStream & fromwhere)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TInstalledTestServer::operator>>=

virtual TStream & operator >>=(TStream & towhere) const

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TInstalledTestServer::Prepare

virtual void Prepare ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Overrides TThreadProgram::Prepare. It creates the local test server but does not start it up. This function is run in the current thread.

Calling Context:

Called by TTaligentTaskHandle constructor to initialize the thread program.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TInstalledTestServer::Run

virtual void Run ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Overrides TThreadProgram::Run. This function starts up the local test server and does a death watch on the dispatcher thread for the test server. This function is run in a new thread.

Calling Context:

Called by TTaligentTaskHandle constructor to run in a separate thread.

Parameters:

Return Value:

None.

Exceptions:

If an exception is caught, an assertion is made.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TInstalledTestServer::StartLocalTestServer

static void StartLocalTestServer (const TText & serverName)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Starts up a test server in the current thread.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

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.