gomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gomd-devel] <DAEMON>: new format for answers to client requests


From: Matthias Rechenburg
Subject: Re: [gomd-devel] <DAEMON>: new format for answers to client requests
Date: Mon, 2 Jun 2003 21:36:42 +0200
User-agent: KMail/1.4.3

Hi JP,

to my mind it is a very good idea.
Makes it really a lot easier to parse in the client programs.
Good work as usual :))

On Sonntag 01 Juni 2003 23:41, Gian Paolo Ghilardi wrote:
> Hi all.
>
> I've changed the format for gomd answers (I need comments about this)
> Old-format code is actually commented (not removed).
>
> Moshe: I hope you like this format.
>
>
> Example (with automated range inversion):
> REQUEST: get load 1,3-2,4
>
> OLD ANSWER FORMAT
> Node load (1) : -101
> Node load (2) : 1
> Node load (3) : <ERROR>
> Node load (4) : <ERROR>
> ...
>
> NEW ANSWER FORMAT
> (1:-101) (2:1) (3:<ERROR>)  (4:<ERROR>) ...
>
> This change has a lot of pros:
> - new format is compact
> - client will wait for just a single line (while with the old format, a
> clients doesn't know how many lines it has to wait for)
> - when the single line arrives, client gets all the value
> - format is standard -> (TYPE_OR_ID:VALUE) so can be parsed more easily
>   Where:
>   * TYPE is the type of information or a node ID
>   * VALUE is the value related to the type of information or a specific
> node

agree with all of you pros 

>
>
>
> As usual, I need comments, tests,... :)

test will follow soon

>
> <rejected>
>
>
>
>
> _______________________________________________
> gomd-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gomd-devel

have a nice evening,

Matt
-- 
E-mail  :  address@hidden
www     : http://www.openmosixview.com
an openMosix-cluster management GUI

It was originally it was called UNICS which stood for
"Uniplexed Information and Computing System"
and then got changed to UNIX.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]