Package org.jgroups

Examples of org.jgroups.AnycastAddress


      Buffer buf;
      if (totalOrder && distribution) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, rsvp, totalOrder);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST || totalOrder) {
         buf = marshallCall(marshaller, command);
View Full Code Here


      Buffer buf;
      if (totalOrder) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, true);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder && distribution) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, rsvp, totalOrder);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST || totalOrder) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder && distribution) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, totalOrder);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST || totalOrder) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, true);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, true);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, totalOrder);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST) {
         buf = marshallCall(marshaller, command);
View Full Code Here

      Buffer buf;
      if (totalOrder) {
         buf = marshallCall(marshaller, command);
         Message message = constructMessage(buf, null, oob, mode, rsvp, totalOrder);

         AnycastAddress address = new AnycastAddress(dests);
         message.setDest(address);

         retval = card.castMessage(dests, message, new RequestOptions(mode, timeout, false, filter));
      } else if (broadcast || FORCE_MCAST) {
         buf = marshallCall(marshaller, command);
View Full Code Here

    }

    private AnycastAddress getDestinations(List<Address> members) {
        int rand = members.indexOf(jChannel.getAddress());

        AnycastAddress address = new AnycastAddress();

        address.add(members.get(rand++ % members.size()),
                    members.get(rand++ % members.size()),
                    members.get(rand % members.size()));

        return address;
    }
View Full Code Here

        String address = jChannel.getAddressAsString();
        List<Address> mbrs = jChannel.getView().getMembers();
        start = System.nanoTime();
        for (int i = 0; i < numberOfMessages; ++i) {
            AnycastAddress dst = getDestinations(mbrs);
            Message message = new Message();
            message.setDest(dst);

            DataMessage dataMessage = new DataMessage();
            dataMessage.type = DataMessage.DATA;
View Full Code Here

TOP

Related Classes of org.jgroups.AnycastAddress

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.