There are a set of requirements a high-level API for OI should fulfill:
 - Caching of CCBs and re-construction of the complete transaction should be 
done by the framework, not the user code
 - Marshalling from Python code to C should be hidden and done by the framework
 - It must be possible to build a "full" OI, that gets callbacks on each 
operation, the completed transaction, and a call to apply the transaction
 - It must be possible to build an applier that can run in parallel with a full 
OI
 - There should only need to be "user code" for the functionality the user 
wants to have. E.g., if the user doesn't want to get callbacks for each 
individual CCB operation, it shouldn't need to write placeholder functions that 
do nothing
 - It should be possible flexible so the user can choose to either:
     - Let the framework code handle the full dispatch loop and select handling
     - Let the user integrate the OI with its own dispatch loop and select 
handling


---

** [tickets:#1406] pyosaf: Higher leve/pythonic bindings for the IMM OI API are 
missing**

**Status:** assigned
**Milestone:** future
**Created:** Tue Jul 07, 2015 01:15 PM UTC by Johan Mårtensson
**Last Updated:** Thu Jul 09, 2015 12:15 PM UTC
**Owner:** Johan Mårtensson

For the IMM OM API there are higher level python bindings that make it much 
easier to use compared with the 1-to-1 python bindings. There is for example an 
InstanceIterator   class that iterates through instances for a given class, Ccb 
class for transactions and immom.get() to retrieve a single object.

The IMM OI API only has the 1-to-1 mappings. This makes it hard to write an OI 
as all the wrapping of python types to C and back has to be done by each user. 
OpenSAF should have an abstracted OI python mapping that hides the C 
(un)marshalling and caching and re-construction of CCB operations.


---

Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to