[MOBY-dev] an easy way to see the input/output size whenusingjMoby?

Iván Párraga García ivanp at mmb.pcb.ub.es
Wed Apr 18 16:11:27 UTC 2007


I'll try to explain better...

We're registering info for statistical purposes. Things like time of
execution, status at the end, timestamps, etc. One thing that we want to
store is how big are the moby input objects (in the service call
request) and the same for the response. For example, if one service is
taking a Fasta as input, I want to know how many bytes big is this
Fasta. I don't mind measuring the "exact" size of the input, I want to
retrieve an unit that is proportional to the input size; in other words
the number of characters of the XML moby request corresponding to this
Fasta object is a good measurement, but it would be also a good
measurement the real size in bytes... I want a measurement good enough
to decide if two different calls have different input/ouput sizes and in
what proportion.

However, the best would be to have a realistic size in bytes but it's
not a real need.

In fact, now I'm doing something similiar to this:

MobyJob request...
MobyJob response...

request.format(0).length();
response.format(0).length();

The main problem of this is that I'm introducing an unnecessary overhead
to parse the request/response as an String (and this can be a problem
for huge requests/responses).

Have I explained myself better?

Thanks,

------------------------------------------------
Iván Párraga García
Computer Scientist
Molecular Modelling & Bioinformatics Unit
INB - Instituto Nacional de Bioinformática
Josep Samitier 1-5
08028 Barcelona
Spain
tel.: +34 93 403 71 55
fax.: +34 93 403 71 57
e-mail: ivanp at mmb.pcb.ub.es
group page: http://mmb.pcb.ub.es 
pgp key: http://mmb.pcb.ub.es/~ivanp/pubkey.asc
------------------------------------------------



Edward Kawas escribió:
> Hi Ivan,
>
> I don’t really understand the problem. Do you think that you could give a
> concrete example or provide further information?
>
> Thanks,
>
> Eddie
>
>   
>> -----Original Message-----
>> From: moby-dev-bounces at lists.open-bio.org [mailto:moby-dev-
>> bounces at lists.open-bio.org] On Behalf Of Iván Párraga García
>> Sent: Wednesday, April 18, 2007 8:22 AM
>> To: Core developer announcements
>> Subject: [MOBY-dev] an easy way to see the input/output size when
>> usingjMoby?
>>
>> Hi,
>>
>> I'd like to register the input size of the requests to my moby services
>> (and the same for results) when I'm using jMoby. At the moment I have a
>> provisional work-around but I was wondering if there is a nice way to do
>> it with the jMoby classes.
>>
>> I don't need byte precission (it's not important for me to register the
>> size of all the SOAP stuff, for example); I need a correlated
>> measurement with the input/output (for example the size of the
>> input/output objects in XML ir right).
>>
>> Thanks,
>>
>> --
>> ------------------------------------------------
>> Iván Párraga García
>> Computer Scientist
>> Molecular Modelling & Bioinformatics Unit
>> INB - Instituto Nacional de Bioinformática
>> Josep Samitier 1-5
>> 08028 Barcelona
>> Spain
>> tel.: +34 93 403 71 55
>> fax.: +34 93 403 71 57
>> e-mail: ivanp at mmb.pcb.ub.es
>> group page: http://mmb.pcb.ub.es
>> pgp key: http://mmb.pcb.ub.es/~ivanp/pubkey.asc
>> ------------------------------------------------
>>
>> _______________________________________________
>> MOBY-dev mailing list
>> MOBY-dev at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/moby-dev
>>     
>
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>   



More information about the MOBY-dev mailing list