Novaordis-jboss: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 3: Line 3:
* [[projects]]
* [[projects]]
* [[WildFly CLI Implementation Details]]
* [[WildFly CLI Implementation Details]]
* [[WildFly CLI Programmatic Access]]


=Overview=
=Overview=


Adapter library for JBoss CLI.
Adapter library for JBoss CLI and other JBoss-related functionality.
 
=GitHub=
 
{{External|https://github.com/NovaOrdis/novaordis-jboss}}


=User Manual=
=User Manual=


=Development=
The library provides programmatic access to a JBoss CLI controller.
 
The interaction pattern is similar to:
 
<pre>
JBossControllerClient c = new JBossControllerClient();
c.setHost("localhost");
c.setPort(9999);
c.setUser("admin");
c.setPassword(...);


==GitHub==
c.connect();
 
c.getAttributeValue("something");
 
c.disconnect();
</pre>
 
<tt>io.novaordis.jboss.cli.Main</tt> contains the above simple example. It can be executed with <tt>./src/main/bash/jboss-cli</tt>.
 
==Classpath==
 
Before connecting locally to a specific JBoss instance, the bash wrapper must built the specific classpath for that JBoss instance. The project also contains bash logic that builds the required classpath fragment given the JBOSS_HOME directory:


<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
:<br>https://github.com/NovaOrdis/jboss-cli<br><br>
:https://github.com/NovaOrdis/jboss-cli/blob/master/src/main/bash/jboss-cli.shlib<br>
</blockquote>
</blockquote>
==Logging Configuration==
<font color=red>TODO</font>.

Latest revision as of 05:45, 22 June 2017

Internal

Overview

Adapter library for JBoss CLI and other JBoss-related functionality.

GitHub

https://github.com/NovaOrdis/novaordis-jboss

User Manual

The library provides programmatic access to a JBoss CLI controller.

The interaction pattern is similar to:

JBossControllerClient c = new JBossControllerClient();
c.setHost("localhost");
c.setPort(9999);
c.setUser("admin");
c.setPassword(...);

c.connect();

c.getAttributeValue("something");

c.disconnect();

io.novaordis.jboss.cli.Main contains the above simple example. It can be executed with ./src/main/bash/jboss-cli.

Classpath

Before connecting locally to a specific JBoss instance, the bash wrapper must built the specific classpath for that JBoss instance. The project also contains bash logic that builds the required classpath fragment given the JBOSS_HOME directory:

https://github.com/NovaOrdis/jboss-cli/blob/master/src/main/bash/jboss-cli.shlib

Logging Configuration

TODO.