Bug 727320 - RFE: CLI: Create OOP JavaScript wrapper (at least for JBoss AS)
Summary: RFE: CLI: Create OOP JavaScript wrapper (at least for JBoss AS)
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 3.0.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified vote
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-01 19:47 UTC by Ondřej Žižka
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Ondřej Žižka 2011-08-01 19:47:51 UTC
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]);
as.restart();

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

etc.

Could be writen right in JavaScript as a library loaded by default.

Comment 1 Ondřej Žižka 2011-08-01 19:52:29 UTC
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.