Forums » User questions »
LIFETIME
Added by Scardaci Diego over 13 years ago
Dear All,
which is the unit of measurement of the LIFETIME attribute in the Context Interface?
Regards,
Diego Scardaci
Replies (6)
RE: LIFETIME
-
Added by Schwarz Lionel over 13 years ago
Hi Diego,
The lifetime (like other durations in JSAGA) is expressed in the ISO 8601 format described at:
http://en.wikipedia.org/wiki/ISO_8601#Durations
Regards
Lionel
RE: LIFETIME
-
Added by Scardaci Diego over 13 years ago
Hi Lionel,
in my test I saw a strange behaviour.
Sometimes I got a good value like:
LIFETIME=PT12H
instead sometimes a got a numeric value:
LIFETIME=64227
Could you, please, explain me why?
Regards,
Diego
RE: LIFETIME
-
Added by Schwarz Lionel over 13 years ago
Hi Diego,
I think the numeric value is in seconds. But I do not know why the lifetime is converted into integer.
Sylvain will surely help when he's back in january.
Lionel
RE: LIFETIME
-
Added by Reynaud Sylvain over 13 years ago
Hi Diego,
Both should be numeric values according to the specification.
When implementing the security adaptors, I was thinking that the ISO 8601 format was more convenient for setting the lifetime value (in particular in the configuration file), but not for reading and using it. The consequence of this choice is inhomogeneity in lifetime formats...
If this inhomogeneity is a problem for your use case, please open a new ticket (https://forge.in2p3.fr/projects/jsaga/issues/new) and then we would remove this ISO 8601 format.
Cheers,
Sylvain
RE: LIFETIME
-
Added by Reynaud Sylvain over 13 years ago
Hi Diego,
We have open a ticket for support of numeric value in attribute 'LifeTime' in order to improve compliance with the SAGA specification :
https://forge.in2p3.fr/issues/2395
Cheers,
Sylvain