Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up CLI providers by using Rjb - Ruby Java Bridge and JBoss command line API #49

Open
cardil opened this issue Jan 22, 2016 · 0 comments

Comments

@cardil
Copy link
Collaborator

cardil commented Jan 22, 2016

The idea is to use native Java gateway to JBoss CLI instead of spawning command line processes separately. In theory this should greatly increase the speed of evaluating the catalog.

Example of using command line API here: https://developer.jboss.org/wiki/JBossAS7Command-linePublicAPI
RJB Homepage: http://www.artonx.org/collabo/backyard/?RubyJavaBridge

Sample Ruby code (will be delivered):

require 'rjb'
Rjb::load(classpath = '/usr/lib/wildfly-8.2.0.Final/bin/client/jboss-cli-client.jar')

CommandContext = Rjb::import('CommandContext')
# [..]

Scope of change:

  • puppet class jboss::plugins::rjb that will be included by default, and will install rjb gem into system (should be compatibile w Puppet OSS and Enterprise)
  • abstract provider code changes, implementing 2 strategies: process, rjb and using rjb if it is available and not specified explicitly by user.
  • unit and acceptance tests

After dropping support for Puppet 2.x, provider code can use features for providers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant