Package org.apache.stratos.messaging.broker.publish

Examples of org.apache.stratos.messaging.broker.publish.EventPublisher.publish()


                if(log.isInfoEnabled()) {
                    log.info(String.format("Publishing tenant removed event: [tenant-id] %d", tenantId));
                }
                TenantRemovedEvent event = new TenantRemovedEvent(tenantId);
                EventPublisher eventPublisher = EventPublisherPool.getPublisher(Constants.TENANT_TOPIC);
                eventPublisher.publish(event);
            }
            catch (Exception e) {
                log.error("Could not publish tenant removed event");
            }
        }
View Full Code Here


    public InstanceNotificationPublisher() {
    }

    private void publish(Event event) {
        EventPublisher depsyncEventPublisher = EventPublisherPool.getPublisher(Constants.INSTANCE_NOTIFIER_TOPIC);
        depsyncEventPublisher.publish(event);
    }

    /**
     * Publishing the artifact update event to the instances
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.