[JBoss JIRA] Created: (JBCACHE-1250) Add a Node.clearChildren() functionality
by Brian Stansberry (JIRA)
Add a Node.clearChildren() functionality
----------------------------------------
Key: JBCACHE-1250
URL: http://jira.jboss.com/jira/browse/JBCACHE-1250
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Brian Stansberry
Assigned To: Manik Surtani
For next major API change.
Equivalent to Node.clearData(), but removes the children.
Use case is trying to atomically remove everything under some structural node, while leaving the structural node in place. The best that can be done now is either:
1) Remove the node and re-add it, but this doesn't work for remote caches with INVALIDATION, since both the removal and the addition propagate as invalidation messages. Remote caches are left w/o the structural node. Plus it's not atomic.
2) Query for the children and remove them one by one. Also not atomic, plus if lockParentForChildInsertRemove is false you have to deal with other threads possibly adding new children while you are removing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JBDEPLOY-66) Simplify the StructureDeployer api
by Adrian Brock (JIRA)
Simplify the StructureDeployer api
----------------------------------
Key: JBDEPLOY-66
URL: https://jira.jboss.org/jira/browse/JBDEPLOY-66
Project: JBoss Deployers
Issue Type: Task
Components: structure
Reporter: Adrian Brock
Fix For: JBDEPLOY-2.0.0.CR1
Currently the StructureDeployer api has a horrible method signature:
boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException;
These are fairly ad hoc and difficult to change when we need to pass new context.
We should introduce a new class "StructureContext" which encapsulates these parameters
and any future parameters.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (JBRULES-1702) BRMS: uploading a decision table breaks the package
by Jaroslaw Kijanowski (JIRA)
BRMS: uploading a decision table breaks the package
---------------------------------------------------
Key: JBRULES-1702
URL: https://jira.jboss.org/jira/browse/JBRULES-1702
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-brms
Affects Versions: 5.0.0.M1
Reporter: Jaroslaw Kijanowski
Assignee: Michael Neale
Fix For: 5.0.0.M2
I create a rule, then upload a decision table (see attached) and:
- if I compile the package it looks good, however it isn't, I cannot run a test scenario for example, because I will get missing imports of facts from the first rule;
- if I create another rule, I won't be able to compile the package due to missing imports;
I guess the reason for this is that the decision table adds its own import and package statements in the middle of the rule file.
Here's the source of the package with one "regular" rule and one rule coming from the decision table:
package myNewPAckage
import com.model.Person
import com.model.Alarm
import com.model.Message
rule "first"
dialect "mvel"
when
Alarm( )
then
Person fact0 = new Person();
fact0.setAge( 18 );
insert( fact0 );
end
package XLSRules;
#generated from Decision Table
import com.model.Message;
#From row number: 11
rule "HelloWorld_11"
when
m:Message(status == Message.HELLO)
then
System.out.println(m.getMessage());
m.setMessage("Goodbye cruel world");update(m);
m.setStatus(Message.GOODBYE);update(m);
end
#From row number: 12
rule "HelloWorld_12"
when
m:Message(status == Message.GOODBYE)
then
System.out.println(m.getMessage());
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months