Package org.jgroups.stack

Examples of org.jgroups.stack.Protocol.up()


        if(batch.multicast() && discard_own_mcast) {
            Address local=is_protocol_adapter? ((ProtocolAdapter)tmp_prot).getAddress() : local_addr;
            if(local != null && local.equals(batch.sender()))
                return;
        }
        tmp_prot.up(batch);
    }


    /**
     * Subclasses must call this method when a unicast or multicast message has been received.
View Full Code Here


            final int index=i;
            threads[i]=new Thread() {
                public void run() {
                    try {
                        barrier.await();
                        ucast.up(new Event(Event.MSG,msgs.get(index)));
                    }
                    catch(Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

        String ch_name=hdr.channel_name;
        if(isSingleton()) {
            Protocol tmp_prot=up_prots.get(ch_name);
            if(tmp_prot != null) {
                tmp_prot.up(new Event(Event.MSG, msg));
            }
        }
        else {
            // Discard if message's cluster name is not the same as our cluster name
            if(perform_cluster_name_matching && channel_name != null && !channel_name.equals(ch_name)) {
View Full Code Here

        String ch_name=hdr.channel_name;
        if(isSingleton()) {
            Protocol tmp_prot=up_prots.get(ch_name);
            if(tmp_prot != null) {
                tmp_prot.up(new Event(Event.MSG, msg));
            }
        }
        else {
            // Discard if message's cluster name is not the same as our cluster name
            if(perform_cluster_name_matching && channel_name != null && !channel_name.equals(ch_name)) {
View Full Code Here

        String ch_name=hdr.channel_name;
        if(isSingleton()) {
            Protocol tmp_prot=up_prots.get(ch_name);
            if(tmp_prot != null) {
                tmp_prot.up(new Event(Event.MSG, msg));
            }
        }
        else {
            // Discard if message's cluster name is not the same as our cluster name
            if(perform_cluster_name_matching && channel_name != null && !channel_name.equals(ch_name)) {
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.