Heiko, Ike, Alexey (or others with thoughts):
In the operation request format there are a couple of extraneous bits
that have crept in that basically tell the server information about how
to execute the operation rather than the body of the operation itself.
Wanted to get your opinion on an idea that came up today (see JIRA
below) to segregate these from the rest of the operation.
Basically, instead of the current
{
"operation"=>"add",
"address"=>{"subsystem"=>"foo"},
"paramX"=>"A",
"paramY"=>true,
"rollback-on-runtime-failure"=>"false",
"rollout-plan"=>{.....}
}
It would be:
{
"operation"=>"add",
"address"=>{"subsystem"=>"foo"},
"paramX"=>"A",
"paramY"=>true,
"operation-headers"=>{
"rollback-on-runtime-failure"=>"false",
"rollout-plan"=>{.....}
}
}
Alexey, I first thought about the CLI just as I was about to send this.
This idea would make setting this kind of thing via the CLI harder for
users, which is a significant downside.
On 3/22/11 10:38 AM, Brian Stansberry (JIRA) wrote:
Create an "operation-header" section in operation requests
----------------------------------------------------------
Key: JBAS-9112
URL:
https://issues.jboss.org/browse/JBAS-9112
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 7.0.0.Beta2
For the oddball stuff that goes along with some ops:
"operation-headers"=>{"rollout-plan"=>{..},"rollback-on-runtime-failure"=>false,
"ignore-restart-required"=>true,...}
"operation" and "address" would not move -- too disruptive
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat