cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murali Reddy <>
Subject Re: How to register an event subscriber
Date Mon, 09 Dec 2013 06:30:10 GMT
On 07/12/13 2:52 AM, "Alex Ough" <> wrote:

>To support the new feature, CLOUDSTACK-4992, I'd like to create an
>event subscriber that implements 'EventSubscriber' interface, but I'm
>not sure how to register that subscriber to make it running.


I pasted a subscriber example at [1]. You need to register the subscriber
with interested events. Subscriber should implement 'EventSubscriber'.

>Do I need to specify it in any config file or load it from anywhere
>when the management server is started?

If your code is expected to run with management server, you can just load
the EventBus, and subscribe to it. HTH


>Your reply will be very appreciated.
>Alex Ough

View raw message