[jboss-dev-forums] [Design of Management Features on JBoss] - Re: ManagedObject interface for AS ChannelFactory

bstansberry@jboss.com do-not-reply at jboss.com
Tue Jun 16 11:04:09 EDT 2009


The protocolStackConfigurations property is a property of the ChannelFactory itself. Simple way to think about it is it represents the data structure that is created when a -stacks.xml is parsed.  By writing to that property, a tool can update the configs that will be used for *future* channel creation.

The protocolStackConfiguration property is a piece of read-only information about a running Channel, gotten to indirectly via the openChannels property of the ChannelFactory. It shows actual configuration of the channel.

Stack name isn't a property of a protocol stack configuration because

1) A minor reason is a protocol stack configuration doesn't necessarily have an associated stack_name, since the ChannelFactory exposes an API to create channels from other config resources besides the configs parsed from -stacks.xml. I.e. you can pass in the config directly to createChannel(Object).

2)  the type that represents the protocol stack configuration is CollectionMetaValue.  It represents org.jgroups.conf.ProtocolData[].  The data structure is essentially an array and has no place for a stack_name field.

I didn't add a coordinator field to the view because the JGroups View class didn't have one. But, the class javadoc says the first member in the member list is the coordinator, so that's enough of a contract for me to add it. ;) So I will.

Thanks for the link on the JBossHA page!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237970#4237970

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237970



More information about the jboss-dev-forums mailing list