KMIP-interop-tech

 View Only
  • 1.  Get Attributes

    Posted 05-12-2011 15:57
    I've been trying to work out a number of things before joining this discussion. But rather than delay further, I'd like to toss in some of my thoughts:

    1. Can attributes be dynamic? That is, can they change. (I think the answer is yes.) 2. Are operations meant to be performed atomically?
    3. If a request for the same attribute is repeated within a single operation, and if the attribute is dynamic, and if the attribute changes during the course of the operation, and if the server returned a value for each request of the same attribute, should the attribute values returned be allowed to be different?
    4. Are there sensible use cases for the same dynamic attribute being requested within a single operation, where it is desirable to return more than one "value" should the value change during the calculation of the result set?

    I'm leaning towards support for returning a copy of the result for each request. I have two reasons for this: 1) I think it's simpler to implement; and 2) I think there may be valid use cases for dynamic attributes that change during the course of an operation.

    -- John Leiseboer


  • 2.  Re: [kmip-interop-tech] Get Attributes

    Posted 05-12-2011 22:48
    On 13/05/2011 1:57 AM, jl@quintessencelabs.com wrote: > I'm leaning towards support for returning a copy of the result for each request. > I have two reasons for this: 1) I think it's simpler to implement; > and 2) I think there may be valid use cases for dynamic attributes > that change during the course of an operation. Having implemented both approaches there is little difference between the two in terms of implementation cost so implementation approaches are moot for this particular discussion IMHO. If the rationale for returning multiple values is that they can be different then we would need to specify the order of the results being returned for this 'feature' to be useful. Currently KMIP has no requirement on the ordering of the result set for Get Attributes - i.e. nothing states that the order of the attribute results provided must match the order of the attribute names provided in the request. I'm struggling to see the value in supporting the concept of getting two different results for a single attribute in one Get Attribute request. You can always use two batched operations to explicitly request two separate Get Attribute lookups on the one attribute and that would seem to fit more naturally with the objective. Tim.