Examples of IntMessage


Examples of org.fabric3.samples.wiring.registry.IntMessage

        if (result == 0) {
            pipeline.process(new PipelineMessage("Message " + counter));
        } else if (result == 1) {
            registry.handle(new StringMessage("Test " + counter));
        } else {
            registry.handle(new IntMessage(counter));
        }
        counter++;
    }
View Full Code Here

Examples of org.goldenorb.types.message.IntMessage

      RPCProtocol.class, RPCProtocol.versionID, addr, conf);
  }
 
  @Test
  public void testRPC() {
    IntMessage im1 = client.sendAndReceiveMessage(im0, DESTINATION_VALUE, new IntWritable(
        MESSAGE_VALUE));
    assertTrue(im0.get() == client.getMessage().get());
    assertEquals(im0.getDestinationVertex(), client.getMessage().getDestinationVertex());
    assertEquals(im1.getDestinationVertex(), DESTINATION_VALUE);
    assertTrue(((IntWritable) im1.getMessageValue()).get() == MESSAGE_VALUE);
  }
View Full Code Here

Examples of org.goldenorb.types.message.IntMessage

    }
   
    if(_maxValue > maxValue){
      maxValue = _maxValue;
      for(Edge<IntWritable> e: getEdges()){
        sendMessage(new IntMessage(e.getDestinationVertex(), new IntWritable(maxValue)));
      }
    }
   
    this.voteToHalt();
  }
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.