gomd-devel
[Top][All Lists]
Advanced

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

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


From: Moshe Bar
Subject: [gomd-devel] Re: <DAEMON>: new format for answers to client requests
Date: Mon, 2 Jun 2003 04:25:30 -0700

Hi Gian Paolo

Looks good. I will test it with otop.pl

Moshe


On Sunday, Jun 1, 2003, at 14:41 US/Pacific, 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



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

<rejected>






reply via email to

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