[elephant-devel] unique object IDs and OIDs
Tomo Matsumoto
tomoyuki28jp at gmail.com
Tue May 5 16:46:56 UTC 2009
Thanks for your response, Alex.
When we pass a nonexistent oid to controller-recreate-instance, it
recreates an instance, but I am looking for a function which returns
nil.
Is there such a function? (Or a way to implement such.)
Thanks in advance.
Tomo
On Sat, Apr 25, 2009 at 1:36 AM, Alex Mizrahi <alex.mizrahi at gmail.com> wrote:
>
> PE>>> If using OID values makes sense for this purpose, is there a
> user-API
> way to get an object by its OID?
> ??>> yep, via class index:
> (get-value oid (find-class-index 'classname))
> TM> It seems like the function named find-class-index disappeared in
> Elephant 1.0? How can I do the same thing with version 1.0?
> What I want to do is getting a instance by a class name and an oid.
>
>
> there is now a function controller-recreate-instance:
>
> (ele::controller-recreate-instance store-controller oid classname)
>
> classname is optional, it can figure it out automatically from oid.
>
More information about the elephant-devel
mailing list