[Pacemaker] Newcomer's question - API?
Tim Ward
Tim.Ward at ipaccess.com
Tue Nov 1 16:52:42 UTC 2011
> You can try tooking at LCMC as that is a Java-based GUI that
> should at least get you going.
I did find some Java code but we can't use it because it's GPL, and I
didn't want to study it in case I accidentally copied some of it in
recreating it.
> But perhaps you have the experience (and bandwidth) to take
> on the SWIG task?
What is SWIG?
Tim Ward
Brett Ward Limited - www.brettward.co.uk
> -----Original Message-----
> From: Florian Haas [mailto:florian at hastexo.com]
> Sent: 01 November 2011 15:34
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] Newcomer's question - API?
>
> On 2011-11-01 12:29, Tim Ward wrote:
> > I have found documentation on how to drive Pacemaker from
> the command
> > line, but nothing about how to drive it from code,
> specifically Java.
> >
> > Clearly there must be some such mechanism, as I see mention of GUI
> > managers which do just that.
>
> Believe it or not, what those do is call out to the cibadmin,
> crm_resource, and crm_attribute binaries.
>
> There's a C API via libcib. There's been talk before about
> SWIGifying that, and then be able to generate bindings for
> anything that SWIG supports (including Java), but nothing of
> that sort has materialized up to this point.
>
> > So where should I be looking for the API documentation please?
>
> Andrew will correct me if I'm wrong, but as far as I know
> there is none.
>
> > (Yes I realise that I could run the command line commands
> from Java,
> > but the problem (apart from this being somewhat tacky) is
> then knowing
> > whether it worked or, if not, what went wrong; I've not found any
> > documentation of the textual output from the commands, and
> if it isn't
> > documented as being stable I'm (obviously) worried that it might
> > change between versions.)
>
> You can try tooking at LCMC as that is a Java-based GUI that
> should at least get you going.
>
> But perhaps you have the experience (and bandwidth) to take
> on the SWIG task?
>
> Cheers,
> Florian
>
> --
> Need help with High Availability?
> http://www.hastexo.com/now
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?produc
> t=Pacemaker
>
>
This message contains confidential information and may be privileged. If you are not the intended recipient, please notify the sender and delete the message immediately.
ip.access Ltd, registration number 3400157, Building 2020,
Cambourne Business Park, Cambourne, Cambridge CB23 6DW, United Kingdom
More information about the Pacemaker
mailing list