perfsonar-dev - Re: LS Register Action question -- [Fwd: [I2G2-Proto] New algorithm of LS Registration]
Subject: perfsonar development work
List archive
Re: LS Register Action question -- [Fwd: [I2G2-Proto] New algorithm of LS Registration]
Chronological Thread
- From: Maciej Glowiak <>
- To: Herbert Souza <>
- Cc:
- Subject: Re: LS Register Action question -- [Fwd: [I2G2-Proto] New algorithm of LS Registration]
- Date: Tue, 15 Aug 2006 14:33:52 +0200
- Organization: Poznan Supercomputing and Networking Center
Herbert Souza napisał(a):
>
> In the class "LSRegisterAction.java" in the check metadata part exists a
> test: "if(checkIfKeyIsRegistered (keyValue))". If this test return
> "true" the Key is registered and this service must be updated rigth? If
> yes, why in test when the result is "true" you consider that the Key was
> not found?
>
> The correct would be: if(!checkIfKeyIsRegistered (keyValue))?
>
> Regards and thanks!
Herbert,
I'll investigate it, but now I am on "holidays" and am unable to do it.
Please find attached the algorithm that was send on the mailing list last year. From that time there were slight changes but LS still works very similar as depicted on the attached diagram.
I guess that if key is already registered in the database, then the Update action will be performed. Update and Register work exactly the same, but different conditions must be tested. So maybe the condition you wrote is if someone wants to update lookup information that doesn't exist in the database! So then the update action cannot be done, because there is nothing to update (or the key sent is wrong)
Best regards.
Maciej
-------- Wiadomość oryginalna --------
Temat: [I2G2-Proto] New algorithm of LS Registration
Data: Thu, 27 Oct 2005 17:00:16 +0200
Nadawca: Maciej Glowiak
<>
Firma/Organizacja: Poznan Supercomputing and Networking Center
Adresat: Prototype-JRA1
<>
Hi!
I send new algorithm containing Updates and Keepalives.
Simple registration is implemented.
I wait for your opinion.
The "set time" block means setting the time of the last update of Lookup
Information. It'll be stored internally (probably as nmwg:parameters),
but in different database collection than Metadata and Data blocks of
Lookup Info.
In the future I can imagine that we have three different collections
(like 3 different tables in SQL database): one for Metadata blocks, one
for Data blocks (because of AA) and one for control data (such as
time-of-the-last-update)
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2109 http://monstera.man.poznan.pl/ ||
====================================================================
- Re: LS Register Action question -- [Fwd: [I2G2-Proto] New algorithm of LS Registration], Maciej Glowiak, 08/15/2006
- Re: LS Register Action question -- [Fwd: [I2G2-Proto] New algorithm of LS Registration], Herbert Souza, 08/15/2006
Archive powered by MHonArc 2.6.16.