Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge scm.gforge.inria.fr:/gitroot/simgrid/simgrid-java
[simgrid.git] / org / simgrid / msg / Msg.java
index 557d2b4..c2b9cd7 100644 (file)
@@ -15,7 +15,7 @@ public final class Msg {
        /* Statically load the library which contains all native functions used in here */
        static {
                try {
-                       System.loadLibrary("libSG_java");
+                       System.loadLibrary("SG_java");
                } catch(UnsatisfiedLinkError e) {
                        System.err.println("Cannot load the bindings to the simgrid library: ");
                        e.printStackTrace();
@@ -24,33 +24,15 @@ public final class Msg {
                        System.exit(1);
                }
        }
-
-       /** Everything is right. Keep on going the way ! */
-       public static final int SUCCESS = 0;
-
-       /** Something must be not perfectly clean (but I may be paranoid freak...) */
-       public static final int WARNING = 1;
-
-       /** There has been a problem during your task transfer.
-        *  Either the network is  down or the remote host has been shutdown */
-       public static final int TRANSFERT_FAILURE = 2;
-
-       /** System shutdown. 
-        *  The host on which you are running has just been rebooted.
-        *  Free your data structures and return now ! */
-       public static final int HOST_FAILURE = 3;
-
-       /** Canceled task. This task has been canceled by somebody ! */
-       public static final int TASK_CANCELLLED = 4;
-
-       /** You've done something wrong. You'd better look at it... */
-       public static final int FATAL_ERROR = 5;
-
     /** Retrieve the simulation time
      * @return
      */
        public final static native double getClock();
-
+       /**
+        * Issue an "debug" logging message.
+        * @param s message to log.
+        */
+       public final static native void debug(String s);
     /** Issue an information logging message
      * @param s
      */