[Openais] Ideas for a cleaner/easier to use objdb API
Steven Dake
sdake at redhat.com
Tue Jul 28 15:33:36 PDT 2009
On Wed, 2009-07-29 at 10:29 +1200, angus salkeld wrote:
> On Tue, 2009-07-28 at 14:30 -0700, Steven Dake wrote:
> > On Wed, 2009-07-29 at 09:03 +1200, Angus Salkeld wrote:
> > > Why do you need this?
> > >
> > > I know the config file is set out like this, but why force the requirement
> > > onto objdb?
> > >
> > We could always change the config file to remove this requirement, but I
> > wonder about the case of something like using this for checkpoint
> > service internally.
> >
> > For example, create a checkpoint with two sections. The checkpoint is
> > an object, the two sections are an object. How do you read the various
> > sections?
>
> You could name the sections 1,2,3,4,etc.. (too simple?)
>
so SaCkptSectionWrite to checkpoint A section named "sectionA" How does
it map section A to a section?
I suppose one option is
checkpoints object
checkpoint A
sections object
section A
section B
So it would be something like
object_get ("checkpoints/A/sections/A");
That would probably work for the config case too.
interfaces directive in config file would be
object_get ("totem/interfaces/1");
Regards
-steve
> >
> > Regards
> > -steve
> >
> > > -Angus
> > >
> > > On Wed, Jul 29, 2009 at 8:07 AM, Fabio M. Di Nitto<fabbione at fabbione.net> wrote:
> > > > On Wed, 2009-07-29 at 07:30 +1200, Angus Salkeld wrote:
> > > >> Hi
> > > >>
> > > >> Here is a first attempt at an easier to use API for objdb.
> > > >
> > > >> 2) Each object/key must have a unique name (as a string)
> > > >> 2.1) So no child objects named the same (service, logging,...)
> > > >
> > > > This breaks current requirements from the objdb as we need to have
> > > > objects in the same level with the same string name.
> > > >
> > > > Fabio
> > > >
> > > >
> > > _______________________________________________
> > > Openais mailing list
> > > Openais at lists.linux-foundation.org
> > > https://lists.linux-foundation.org/mailman/listinfo/openais
> >
> > _______________________________________________
> > Openais mailing list
> > Openais at lists.linux-foundation.org
> > https://lists.linux-foundation.org/mailman/listinfo/openais
>
> NOTICE: This message contains privileged and confidential
> information intended only for the use of the addressee
> named above. If you are not the intended recipient of
> this message you are hereby notified that you must not
> disseminate, copy or take any action in reliance on it.
> If you have received this message in error please
> notify Allied Telesis Labs Ltd immediately.
> Any views expressed in this message are those of the
> individual sender, except where the sender has the
> authority to issue and specifically states them to
> be the views of Allied Telesis Labs.
More information about the Openais
mailing list