jbossas/jboss-as — pull request #935 by rachmatowicz (2011-12-16 17:32:05+00:00)
Title: Add in access to cache container attributes for the Infinispan subsystem

This pull request implements access to cache-container attributes in the following way:
for simple cache attributes(default-cache, jndi-name, listener-executor, eviction-executor, replication-queue-executor, alias):
- read via /subsystem=infinispan/cache-container=/read-attribute(name=x)
- written via /subsystem=infinispan/cache-container=/write-attribute(name=x,value=y)

For alias, a full comma-separated list of aliases is returned by read-attribute and required by write-attribute.

for single aliases, we have helper commands:
- added via /subsystem=infinispan/cache-container=container:add-alias(name=x)
- removed via /subsystem=infinispan/cache-container=container:remove-alias(name=x)

for the anonymous transport element:
- added via /subsystem=infinispan/cache-container=/singleton=transport:add(stack=udp, lock-timeout=2000, site=...)
- removed via /subsystem=infinispan/cache-container=/singleton=transport:remove()
- viewed via = /subsystem=infinispan/cache-container=:read-children-resources(child-type=singleton)
- to modify individual entries, use read-attribute and write-attribute