Bug 1054360 - RFE: let users run an AS7/EAP6 CLI script with an operation on Standalone or Host Controller resources

Libor Zoubek lzoubek at redhat.com
Mon Feb 17 15:48:03 UTC 2014


Hello,

I started to work on https://bugzilla.redhat.com/show_bug.cgi?id=1054360 I  
have several more or less cosmetic questions:

1. In order to run jboss-cli plugin needs to know AS7 native management  
port and interface. I've introduced 1 pluginConfig property <host>:<port>  
and added it into "operations" group. Could it be considered as correct? I  
mean I could create 2 properties (similar to what we have for http  
management interface host and port).

2. Plugin in the end runs jboss-cli process with several parameters. I am  
setting ProcessExecution.setWaitForCompletion some hardcoded value to wait  
for process to finish. Is it possible/recommended to fill the value with  
timeout for operation defined in plugin descriptor? When timeout  
ProcessExecution.setWaitForCompletion is reached, child process is killed,  
I tend to set such timeout to very big number, since I don't want child  
script to get interrupted in case user did not correctly set operation  
timeout (he did not expect his script to run too long).

4. What would you suggest as default timeout for "executeCommands" and  
"executeScript" operations? (Iam now on 60s)

5. As scripts are expected to do AS configuration changes, would you  
recommend to requestAvailabilityCheck() and  
requestDeferredChildResourcesDiscovery() after successfull script  
execution?

Thank you

-- 
Libor Zoubek


More information about the rhq-devel mailing list