Package org.goldenorb.types.message

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


    }
   
    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

Related Classes of org.goldenorb.types.message.IntMessage

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.