X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d5ae5f32f5698bceea30ab01b4ac051da8429b5..b50ea0bd9bd6661d86b941b9b1742d44606ee9eb:/examples/java/basic/Master.java diff --git a/examples/java/basic/Master.java b/examples/java/basic/Master.java index e8541060f8..594c392b9d 100644 --- a/examples/java/basic/Master.java +++ b/examples/java/basic/Master.java @@ -1,8 +1,7 @@ /* - * $Id$ + * Master of a basic master/slave example in Java * - * Copyright 2006,2007 Martin Quinson, Malek Cherier - * All rights reserved. + * Copyright 2006,2007,2010 The SimGrid Team. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. @@ -12,66 +11,30 @@ import simgrid.msg.*; public class Master extends simgrid.msg.Process { public void main(String[] args) throws JniException, NativeException { - int channel = 0; - Msg.info("hello!"); - - int slaveCount = 0; - Host[] slaves = null; - - Msg.info("argc="+args.length); - for (int i = 0; i