[jboss-jira] [JBoss JIRA] Commented: (JGRP-988) Add API to manipulate JChannelFactory stacks member
Bela Ban (JIRA)
jira-events at lists.jboss.org
Tue Jun 9 13:46:08 EDT 2009
[ https://jira.jboss.org/jira/browse/JGRP-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12471274#action_12471274 ]
Bela Ban commented on JGRP-988:
-------------------------------
I have no objection, but I'm questioning in general whether we should trash JChannelFactory. It is IMO pretty useless, new apps inject channels anyway, and that mechanism is external.
Can't we move this entire class into JBoss AS ? I'll definitely trash it in 3.0...
> 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: Bela Ban
> Fix For: 2.6.11
>
>
> 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