ORBIT-USER: OML question
Ramya Krishnamoorthy
rk274 at cornell.edu
Fri Apr 6 07:58:17 EDT 2007
Figured out the problem. It was the single quotes. Changed it to
a.addMeasurement('createdObject', nil,
[ ['objectName',String], ['majorVersion', 'int'],
['minorVersion','int'], ['size', 'int']] )
and it worked.
Thanks
Ramya
-----Original Message-----
From: Ramya Krishnamoorthy [mailto:rk274 at cornell.edu]
Sent: Friday, April 06, 2007 7:42 AM
To: orbit-user at winlab.rutgers.edu
Subject: RE: ORBIT-USER: OML question
Hi
I have one more problem. I was able to generate the library successfully
using metric type "string".
But when I try to add a measurement in the application definition:
a.addMeasurement('createdObject', nil,
[ ['objectName','string'], ['majorVersion', 'int'],
['minorVersion','int'], ['size', 'int']] )
I get an error running the experiment:
FATAL run: Exception: Unknown type 'string' for metric 'objectName'.
(RuntimeErr
or)
/tmp/eee.199/lib/handler/appMeasurement.rb:121:in `addMetric'
/tmp/eee.199/lib/handler/appMeasurement.rb:138:in `addMetric'
/tmp/eee.199/lib/handler/appMeasurement.rb:82:in `initialize'
/tmp/eee.199/lib/handler/appMeasurement.rb:80:in `initialize'
/tmp/eee.199/lib/handler/appDefinition.rb:309:in `addMeasurement'
./test_app_seacow.rb:19
/etc/nodehandler/grid.cfg:103:in `load'
/tmp/eee.199/lib/handler/appDefinition.rb:35:in `[]'
/tmp/eee.199/lib/handler/application.rb:45:in `initialize'
/tmp/eee.199/lib/handler/prototype.rb:255:in `addApplication'
./test_proto_seacownode.rb:16
/etc/nodehandler/grid.cfg:103:in `load'
/tmp/eee.199/lib/handler/prototype.rb:36:in `[]'
/tmp/eee.199/lib/handler/nodeSet.rb:977:in `prototype'
./SeaCowExp.rb:17
/tmp/eee.199/lib/handler/nodeSet.rb:922:in `call'
/tmp/eee.199/lib/handler/nodeSet.rb:908:in `initialize'
/tmp/eee.199/app/nodeHandler.rb:119:in `defNodes'
./SeaCowExp.rb:14
/etc/nodehandler/grid.cfg:103:in `load'
/tmp/eee.199/lib/handler/experiment.rb:38:in `load'
/tmp/eee.199/app/nodeHandler.rb:991
What am I doing wrong?
Thanks
Ramya
-----Original Message-----
From: owner-orbit-user at winlab.rutgers.edu
[mailto:owner-orbit-user at winlab.rutgers.edu]On Behalf Of Pandurang Kamat
Sent: Wednesday, April 04, 2007 8:25 PM
To: orbit-user at winlab.rutgers.edu
Subject: Re: ORBIT-USER: OML question
Upto 32 character strings are supported.
Use type="string".
Check the header file you receive for the function declaration. You'll
have to use "char *" to pass your strings to OML. Works both with C and
C++ programs.
-Pandurang
Ramya Krishnamoorthy wrote:
> Hi
>
> Could someone please tell me what the supported metric types for OML are?
> According to the example in the documentation, int and float are
supported.
> <measurement-point id="receiverport">
> <metric id="flow_no" type="int">
> <description>id of the
> flow</description>
> </metric>
> <metric id="throughput" type="float">
> <description> Flow
> Throughput</description>
> </metric>
> </measurement-point>
>
> I know this is unlikely, but are any non-numeric types like strings
> supported?
>
> Thanks for your help!
>
> Regards,
> Ramya
>
More information about the orbit-user
mailing list