Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix minor issues in the management of Java Exceptions + comment process cancelled...
[simgrid.git] / src / bindings / java / org / simgrid / msg / Process.java
index edde2bf..5791ccd 100644 (file)
@@ -1,11 +1,8 @@
-/*
- * Copyright 2006-2012 The SimGrid team
- * All right 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.
- */
+/* Copyright (c) 2006-2014. 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. */
 
 package org.simgrid.msg;
  
@@ -98,7 +95,7 @@ public abstract class Process implements Runnable {
 
        
        /**
-        * Default constructor (used in ApplicationHandler to initialize it)
+        * Default constructor
         */
        protected Process() {
                this.id = nextProcessId++;
@@ -195,7 +192,7 @@ public abstract class Process implements Runnable {
        }
        /**
         * The natively implemented method to create an MSG process.
-        * @param host    A valid (binded) host where create the process.
+        * @param hostName    A valid (bound) host where create the process.
         */
        protected native void create(String hostName) throws HostNotFoundException;
        /**
@@ -291,7 +288,7 @@ public abstract class Process implements Runnable {
                return ppid;
        }
        /**
-        * @brief Returns the value of a given process property. 
+        * Returns the value of a given process property. 
         */
        public native String getProperty(String name);
        
@@ -311,7 +308,6 @@ public abstract class Process implements Runnable {
        /**
         * Migrates a process to another host.
         *
-        * @param process               The process to migrate.
         * @param host                  The host where to migrate the process.
         *
         */
@@ -347,7 +343,7 @@ public abstract class Process implements Runnable {
                                this.args.size());
                for (int i = 0; i < this.args.size(); i++)
                        Msg.info("[" + this.msgName() + "/" + this.getHost().getName() +
-                                       "] args[" + i + "]=" + (String) (this.args.get(i)));
+                                       "] args[" + i + "]=" + this.args.get(i));
        }
     /**
      * This method actually creates and run the process.
@@ -382,8 +378,7 @@ public abstract class Process implements Runnable {
                        System.exit(1);
                }
                 catch(ProcessKilledError pk) {
-                        
-                }      
+               }       
                exit();
        }