Package org.apache.stratos.messaging.event.instance.notifier

Examples of org.apache.stratos.messaging.event.instance.notifier.InstanceCleanupMemberEvent


    @Override
    public boolean process(String type, String message, Object object) {
        if (InstanceCleanupMemberEvent.class.getName().equals(type)) {
            // Parse complete message and build event
            InstanceCleanupMemberEvent event = (InstanceCleanupMemberEvent) Util.jsonToObject(message, InstanceCleanupMemberEvent.class);

            // Notify event listeners
            notifyEventListeners(event);
            return true;
        }
View Full Code Here


        eventReceiver.addEventListener(new InstanceCleanupMemberEventListener() {
            @Override
            protected void onEvent(Event event) {
                String memberIdInPayload = CartridgeAgentConfiguration.getInstance().getMemberId();
                InstanceCleanupMemberEvent instanceCleanupMemberEvent = (InstanceCleanupMemberEvent) event;
                if (memberIdInPayload.equals(instanceCleanupMemberEvent.getMemberId())) {
                    onInstanceCleanupEvent();
                }
            }
        });
View Full Code Here

     *
     * @param memberId
     */
    public void sendInstanceCleanupEventForMember(String memberId) {
        log.info(String.format("Publishing Instance Cleanup Event: [member] %s", memberId));
        publish(new InstanceCleanupMemberEvent(memberId));
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.messaging.event.instance.notifier.InstanceCleanupMemberEvent

Copyright © 2018 www.massapicom. 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.