Bug 727320 - RFE: CLI: Create OOP JavaScript wrapper (at least for JBoss AS)
RFE: CLI: Create OOP JavaScript wrapper (at least for JBoss AS)
Status: NEW
Product: RHQ Project
Classification: Other
Component: CLI (Show other bugs)
Unspecified Unspecified
medium Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2011-08-01 15:47 EDT by Ondřej Žižka
Modified: 2011-10-06 14:47 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ondřej Žižka 2011-08-01 15:47:51 EDT
Would be nice if users could handle JBoss AS like this:

var as = JBossAS.find("localhost", 8080);

as.start( [timeoutSec] );  // Blocking, throws on failure/timeout.
as.deployWar("file:///home/ondra/test.war" [, Configuration]);
as.deployEar("file:///home/ondra/test.war" [, Configuration]);

var ds = as.getDatasources(); // Array of JBossAS.Datasource classes


Could be writen right in JavaScript as a library loaded by default.
Comment 1 Ondřej Žižka 2011-08-01 15:52:29 EDT
Also, classes for RHQ-wide concepts like schedules and operation results could be implemented.

var sch = as.schedule.start( [new Date()] );  // Non-blocking, returns some ScheduledOp class obj.

var result = sch.waitToFinish( [timeoutSec] ); // Returns null on timeout, result object if finished.

Note You need to log in before you can comment on or make changes to this bug.