[jboss-as7-dev] Add Notification support to the domain management API
Brian Stansberry
brian.stansberry at redhat.com
Thu Feb 14 17:42:26 EST 2013
Just some basic categories of use cases:
1) Internal to the server. See usage of ControlledProcessStateService
for an example. It's essentially a notification emitter for a couple
specific management events.
A lot of internal to the server use cases though might be better done
with services though. For example, say a service injects a
SocketBindingService to learn it's socket configuration during start.
Then that service wants to listen for notifications of changes to the
socket binding config. Is it better off listening for messages from a
generic notification mechanism, or should the SocketBindingService
itself generate events?
2) Support for remote notifications is important. Perhaps more value in
this than in a generic internal mechanism. The notification mechanism
becomes an standard means via which changes internal to the server (or
group of servers) can be communicated to management tools.
In a domain, a host has joined/left. A server has been started stopped.
Cluster topology changes at the JGroups or Infinispan levels.
3) I can see making use of the facilities for 2) in the domain
management layer itself. For example, the DOMAIN_PING request (JGroups
discovery protocol based on asking the domain for information on
available peers) could use management notifications to propagate the
necessary data.
On 2/14/13 11:06 AM, Jeff Mesnil wrote:
> I've started to work on [AS7-370] Add Notification support to the domain management API[1].
>
> To make sure we agree on the content and scope of this task, I've created a doc on our dev forum summarizing what I intend to do (and not do) about this[2].
> It's a simple draft but I'd appreciate any feedback on this.
> I'm particularly interested by the use cases what would benefit from such notifications (Web Console, auditing, others…) to make sure they'd be covered by the requirements.
>
> I'm trying to keep this as simple as possible for subsystems to leverage notifications without too much involvement while making sure there are no performance or memory penalty for the AS7 to handle them.
>
> jeff
>
> [1] https://issues.jboss.org/browse/AS7-370
> [2] https://community.jboss.org/wiki/AddNotificationSupportToTheDomainManagementAPI
>
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat
More information about the jboss-as7-dev
mailing list