Examples of DiscoveryEvent


Examples of org.apache.activemq.command.DiscoveryEvent

    public void removeService(JmDNS jmDNS, String type, String name) {
        if (log.isDebugEnabled()) {
            log.debug("removeService with type: " + type + " name: " + name);
        }
        if( listener!=null )
            listener.onServiceRemove(new DiscoveryEvent(name));
    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

            public void start() throws Exception {
                taskRunner.init();
                taskRunner.execute(new Runnable() {
                    @Override
                    public void run() {
                        listener.onServiceAdd(new DiscoveryEvent(broker2
                                .getVmConnectorURI().toString()));
                    }
                });
                taskRunner.execute(new Runnable() {
                    @Override
                    public void run() {
                        listener.onServiceAdd(new DiscoveryEvent(broker2
                                .getVmConnectorURI().toString()));
                    }
                });
            }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

        }
    }

    private void fireServiceRemovedEvent(RemoteBrokerData data) {
        if (discoveryListener != null) {
            final DiscoveryEvent event = new DiscoveryEvent(data.service);
            event.setBrokerName(data.brokerName);

            // Have the listener process the event async so that
            // he does not block this thread since we are doing time sensitive
            // processing of events.
            getExecutor().execute(new Runnable() {
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

        }
    }

    private void fireServiceAddEvent(RemoteBrokerData data) {
        if (discoveryListener != null) {
            final DiscoveryEvent event = new DiscoveryEvent(data.service);
            event.setBrokerName(data.brokerName);
           
            // Have the listener process the event async so that
            // he does not block this thread since we are doing time sensitive
            // processing of events.
            getExecutor().execute(new Runnable() {
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

public class DiscoveryEventTest extends DataFileGeneratorTestSupport {

    public static final DiscoveryEventTest SINGLETON = new DiscoveryEventTest();

    public Object createObject() throws Exception {
        DiscoveryEvent info = new DiscoveryEvent();
        populateObject(info);
        return info;
    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

        return info;
    }

    protected void populateObject(Object object) throws Exception {
        super.populateObject(object);
        DiscoveryEvent info = (DiscoveryEvent)object;
        info.setServiceName("ServiceName:1");
        info.setBrokerName("BrokerName:2");

    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent


    public static final DiscoveryEventTest SINGLETON = new DiscoveryEventTest();

    public Object createObject() throws Exception {
        DiscoveryEvent info = new DiscoveryEvent();
        populateObject(info);
        return info;
    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

        return info;
    }

    protected void populateObject(Object object) throws Exception {
        super.populateObject(object);
        DiscoveryEvent info = (DiscoveryEvent) object;

        info.setServiceName("ServiceName:1");
        info.setBrokerName("BrokerName:2");
    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent


    public static final DiscoveryEventTest SINGLETON = new DiscoveryEventTest();

    public Object createObject() throws Exception {
        DiscoveryEvent info = new DiscoveryEvent();
        populateObject(info);
        return info;
    }
View Full Code Here

Examples of org.apache.activemq.command.DiscoveryEvent

        return info;
    }

    protected void populateObject(Object object) throws Exception {
        super.populateObject(object);
        DiscoveryEvent info = (DiscoveryEvent) object;

        info.setServiceName("ServiceName:1");
        info.setBrokerName("BrokerName:2");
    }
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.