[Pacemaker] Newcomer's question - API?
Florian Haas
florian at hastexo.com
Tue Nov 1 15:33:59 UTC 2011
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
More information about the Pacemaker
mailing list