- **status**: accepted --> review


---

** [tickets:#50] IMM: Add possibility to efficiently find all NO_DANGLING 
references to an object**

**Status:** review
**Created:** Wed May 08, 2013 07:55 AM UTC by Anders Bjornerstedt
**Last Updated:** Fri Dec 06, 2013 09:37 AM UTC
**Owner:** Zoran Milinkovic

Migrated from:
http://devel.opensaf.org/ticket/3123

This is related to enhancement #49 
(https://sourceforge.net/p/opensaf/tickets/49)

Add support for a way to use the IMM object search API, to find all objects
that contain at least one NO_DANGLING reference, pointing at a specified target
object. The search API saImmOmSearchInitialize_2 is defined in section
4.5.1 of the IMM A.02.01 specification.

Such a search will be created by filling in the arguments of
saImmOmSearchInitialize_2 in the following way:

 1) The searchOptions parameter must set a new search-criteria flag:

      #define SA_IMM_SEARCH_NO_DANGLING_DEPENDENTS  0x0000000100000000

This flag indicates that the intention of the search is to find all objects
that have any NO_DANGLING reference pointing to a particular target object.
The target object must of course be a currently existing imm object. 
Attribute-options (such as SA_IMM_SEARCH_GET_NO_ATTR) may also be or-ed to the
searchOptions argument in the normal way, to avoid fetching not needed data.

2) The target object is identified in the searchParam parameter as follows:

a) attrName must be set to NULL.
b) attrValue must be the DN of an object.
c) attrValueType may be *either* SA_IMM_ATTR_SANAMET or SA_IMM_ATTR_SASTRINGT.

The value must of course be the DN of a currently existing object. The use of
SaStringT is allowed here to accommodate future enhancements that replace the
use of SaNameT with SaStringT. 

This makes it possible to find all objects that are no-dangling dependent
on the target. Only NO_DANGLING references will be returned because only such
references can efficiently be located for any given object DN as target.

The return result is an iteration, as usual, where each searchNext returns an
object that contains one or more NO_DANGLING flagged references pointing to the
target. The reference attributes may be included (along with other attributes!)
or not depending on the search options setting, e.g. SA_IMM_SEARCH_GET_ALL_ATTR.





---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to