IiopObjectSetMeasures Function

Action

By default a timer is associated with any CORBA object in order to measure all operation calls and write the results to the Silk Performer results repository. This function must be called in order to specify a name for the default timer. Otherwise the default timer is not named.

Include file

IIOP.bdh

Syntax

IiopObjectSetMeasures( in hIiop    : number,
                       in sMeasure : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object
sMeasure Name used to identify the measure

Example

dcltrans
  transaction TMain
  const
    HOST   := "192.168.20.21"; // server
    PORT   := 1052; // port
    KEY    := "...\h00"; // key
    KEYLEN := 4; // key length
  var
    hIiop     : number; // handle to CORBA object
    nForwards : number;
    fTime     : float;
  begin
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);

    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",
                     HOST, PORT, KEY, KEYLEN);
    IiopObjectSetMeasures(hIiop, "Math object");
    ...
    IiopObjectRelease(hIiop);
  end TMain;

Sample scripts

AnyDemo.bdf, AsyncBank.bdf, Bank.bdf, SimpleAsyncBank.bdf, TypeTest.bdf, AsyncFact.bdf, AsyncOdb.bdf, Conf.bdf, DynAny.bdf, Factory.bdf, Odb.bdf, Vbrokerbank02.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba