[jboss-jira] [JBoss JIRA] Closed: (JGRP-988) Add API to manipulate JChannelFactory stacks member
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Wed Jun 10 16:42:56 EDT 2009
[ https://jira.jboss.org/jira/browse/JGRP-988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry closed JGRP-988.
---------------------------------
Fix Version/s: (was: 2.6.11)
Resolution: Won't Fix
Never mind; it's better for the AS to stop subclassing; that works fine: JBAS-7009
> Add API to manipulate JChannelFactory stacks member
> ---------------------------------------------------
>
> Key: JGRP-988
> URL: https://jira.jboss.org/jira/browse/JGRP-988
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
>
> I'd like to see the following methods added to JChannelFactory to go along with the existing getConfig and removeConfig. These will allow the JBoss AS-specific subclass to update the contents of the "stacks" member in response to updates from management tools like the embedded console or Jopr:
> public boolean addConfig(String stack_name, String config, boolean replace) {
> boolean added = replace;
> if(replace) {
> stacks.put(st_name, val);
> if(log.isTraceEnabled())
> log.trace("added config '" + st_name + "'");
> }
> else {
> if(!stacks.containsKey(st_name)) {
> stacks.put(st_name, val);
> added = true;
> if(log.isTraceEnabled())
> log.trace("added config '" + st_name + "'");
> }
> else {
> if(log.isTraceEnabled())
> log.trace("didn't add config '" + st_name + " because one of the same name already existed");
> }
> return added;
> }
> public Set<String> getConfigNames() {
> return Collections.unmodifiableSet(stacks.keySet());
> }
> Bela, I've assigned this to you to get your feedback on it, but I'd be happy to do it. Just assign back to me.
--
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
More information about the jboss-jira
mailing list