Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Acknoledge the fact that JniException is a runtime exception now: kill all its occure...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Mar 2010 00:29:09 +0000 (00:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Mar 2010 00:29:09 +0000 (00:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7154 48e7efb5-ca39-0410-a469-dd3cf9ba447f

16 files changed:
examples/java/basic/BasicTest.java
examples/java/basic/FinalizeTask.java
examples/java/basic/Forwarder.java
examples/java/basic/Master.java
examples/java/basic/Slave.java
examples/java/comm_time/CommTimeTest.java
examples/java/comm_time/FinalizeTask.java
examples/java/comm_time/Master.java
examples/java/comm_time/Slave.java
examples/java/ping_pong/PingPongTask.java
examples/java/ping_pong/PingPongTest.java
examples/java/ping_pong/Receiver.java
examples/java/ping_pong/Sender.java
examples/java/suspend/DreamMaster.java
examples/java/suspend/LazyGuy.java
examples/java/suspend/SuspendTest.java

index 5d34c69..89921ae 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * 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. 
@@ -17,7 +14,7 @@ public class BasicTest {
     * which also contains such a launcher
     */
    
-    public static void main(String[] args) throws JniException, NativeException {
+    public static void main(String[] args) throws NativeException {
        
        /* initialize the MSG simulation. Must be done before anything else (even logging). */
        Msg.init(args);
index 274ecd5..3764382 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id: CommTimeTask.java 3685 2007-07-08 21:02:03Z mquinson $
- *
- * 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. 
@@ -10,9 +7,8 @@
 
 import simgrid.msg.*;
 
-public class FinalizeTask extends Task {
-       
-   public FinalizeTask() throws JniException, NativeException{
+public class FinalizeTask extends Task {       
+   public FinalizeTask() {
       super("finalize",0,0);
    }
 }
index dd69021..46d1186 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * Copyright 2006,2007,2010 The SimGrid Team
- * 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,7 +9,7 @@ import simgrid.msg.*;
 
 public class Forwarder extends simgrid.msg.Process {
     
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       if (args.length < 3) {    
         Msg.info("Forwarder needs 3 arguments (input mailbox, first output mailbox, last one)");
         Msg.info("Got "+args.length+" instead");
index 2b4ef9a..90e55dc 100644 (file)
@@ -10,7 +10,7 @@
 import simgrid.msg.*;
 
 public class Master extends simgrid.msg.Process {
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       if (args.length < 4) {
         Msg.info("Master needs 4 arguments");
         System.exit(1);
index d2bb15d..4249fdb 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * 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,7 +8,7 @@
 import simgrid.msg.*;
 
 public class Slave extends simgrid.msg.Process {
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       if (args.length < 1) {
         Msg.info("Slave needs 1 argument (its number)");
         System.exit(1);
index 4ff274a..ef31c0b 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Copyright 2006,2007,2010 The SimGrid Team. All right reserved. 
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -17,7 +15,7 @@ public class CommTimeTest {
     * which also contains such a launcher
     */
    
-    public static void main(String[] args) throws JniException, NativeException {
+    public static void main(String[] args) throws NativeException {
        
        /* initialize the MSG simulation. Must be done before anything else (even logging). */
        Msg.init(args);
index c3a10b3..b7878fd 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id: CommTimeTask.java 3685 2007-07-08 21:02:03Z mquinson $
- *
- * 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. 
@@ -10,9 +7,8 @@
 
 import simgrid.msg.*;
 
-public class FinalizeTask extends Task {
-       
-   public FinalizeTask() throws JniException, NativeException{
+public class FinalizeTask extends Task {       
+   public FinalizeTask() {
       super("",0,0);
    }
 }
index 7f3b5c7..38ca35b 100644 (file)
@@ -10,7 +10,7 @@
 import simgrid.msg.*;
 
 public class Master extends simgrid.msg.Process {
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       if (args.length < 4) {
         Msg.info("Master needs 4 arguments");
         System.exit(1);
index e9069ad..df6b84a 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * 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,7 +8,7 @@
 import simgrid.msg.*;
 
 public class Slave extends simgrid.msg.Process {
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       if (args.length < 1) {
         Msg.info("Slave needs 1 argument (its number)");
         System.exit(1);
index 62c178a..79fa7d2 100644 (file)
@@ -1,8 +1,5 @@
 /*
- * $Id$
- *
- * 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. 
@@ -14,11 +11,11 @@ public class PingPongTask extends Task {
    
    private double timeVal;
    
-   public PingPongTask() throws JniException, NativeException {
+   public PingPongTask() throws NativeException {
       this.timeVal = 0;
    }
    
-   public PingPongTask(String name, double computeDuration, double messageSize) throws JniException, NativeException {      
+   public PingPongTask(String name, double computeDuration, double messageSize) throws NativeException {      
       super(name,computeDuration,messageSize);         
    }
    
index c92750b..48c86b1 100644 (file)
@@ -17,7 +17,7 @@ public class PingPongTest  {
     * which also contains such a launcher
     */
     
-    public static void main(String[] args) throws JniException, NativeException {
+    public static void main(String[] args) throws NativeException {
        
        /* initialize the MSG simulation. Must be done before anything else (even logging). */
        Msg.init(args);
index 1f0cf4e..e432c90 100644 (file)
@@ -15,7 +15,7 @@ public class Receiver extends simgrid.msg.Process {
    final double commSizeLat = 1;
    final double commSizeBw = 100000000;
     
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
         
       Msg.info("hello!");
       double communicationTime=0;
index 846566f..eca3688 100644 (file)
@@ -14,7 +14,7 @@ public class Sender extends simgrid.msg.Process {
     private final double commSizeLat = 1;
     final double commSizeBw = 100000000;
    
-    public void main(String[] args) throws JniException, NativeException {
+    public void main(String[] args) throws NativeException {
        
        Msg.info("hello!");
         
index 5a9164c..9f7cb70 100644 (file)
@@ -11,7 +11,7 @@ import simgrid.msg.*;
 
 public class DreamMaster extends simgrid.msg.Process {
     
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       Msg.info("Hello !");
       Msg.info("Let's create a lazy guy.");
        
index 5dcaf01..e31bae0 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved. 
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -14,14 +12,13 @@ public class LazyGuy extends simgrid.msg.Process {
       super();
     }
    
-   public LazyGuy(Host host,String name) 
-     throws NullPointerException, HostNotFoundException, JniException, NativeException
+   public LazyGuy(Host host,String name) throws HostNotFoundException, NativeException
      {
        super(host,name,null);
      }
        
         
-   public void main(String[] args) throws JniException, NativeException {
+   public void main(String[] args) throws NativeException {
       Msg.info("Hello !");
       
       Msg.info("Nobody's watching me ? Let's go to sleep.");
index 4a4cbff..60acfd1 100644 (file)
@@ -13,7 +13,7 @@ import simgrid.msg.*;
 
 public class SuspendTest {
     
-    public static void main(String[] args) throws JniException, NativeException {
+    public static void main(String[] args) throws NativeException {
        
        /* initialize the MSG simulation. Must be done before anything else (even logging). */
        Msg.init(args);