X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eaded0c5df38c966cdc7fa3f574019d33eb1377e..ff4cb50da99dff92aba52db9c9a34bc6aee08788:/examples/java/basic/Master.java diff --git a/examples/java/basic/Master.java b/examples/java/basic/Master.java index 4fa8f44b0d..eab3bf5f95 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. @@ -11,70 +10,31 @@ import simgrid.msg.*; public class Master extends simgrid.msg.Process { - public void main(String[] args) throws JniException, NativeException { - Msg.info("hello!"); - - int slaveCount = 0; - Host[] slaves = null; - - Msg.info("argc="+args.length); - for (int i = 0; i