git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7313
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
- public void main(String[] args) throws NativeException {
+ public void main(String[] args) throws MsgException {
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
import simgrid.msg.*;
public class Slave extends simgrid.msg.Process {
- public void main(String[] args) throws NativeException {
+ public void main(String[] args) throws MsgException {
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
if (args.length < 1) {
Msg.info("Slave needs 1 argument (its number)");
System.exit(1);
final double commSizeLat = 1;
final double commSizeBw = 100000000;
final double commSizeLat = 1;
final double commSizeBw = 100000000;
- public void main(String[] args) throws NativeException {
+ public void main(String[] args) throws MsgException {
Msg.info("hello!");
double communicationTime=0;
Msg.info("hello!");
double communicationTime=0;
public class DreamMaster extends simgrid.msg.Process {
public class DreamMaster extends simgrid.msg.Process {
- public void main(String[] args) throws NativeException {
+ public void main(String[] args) throws MsgException {
Msg.info("Hello !");
Msg.info("Let's create a lazy guy.");
Msg.info("Hello !");
Msg.info("Let's create a lazy guy.");
java/simgrid/msg/NativeException.java \
java/simgrid/msg/HostNotFoundException.java \
java/simgrid/msg/ProcessNotFoundException.java \
java/simgrid/msg/NativeException.java \
java/simgrid/msg/HostNotFoundException.java \
java/simgrid/msg/ProcessNotFoundException.java \
+ java/simgrid/msg/TaskCancelledException.java \
\
java/simgrid/msg/Msg.java \
java/simgrid/msg/Process.java \
\
java/simgrid/msg/Msg.java \
java/simgrid/msg/Process.java \
MsgNative.processWaitFor(seconds);
}
public void showArgs() {
MsgNative.processWaitFor(seconds);
}
public void showArgs() {
- try {
- Msg.info("[" + this.name + "/" + this.getHost().getName() + "] argc=" +
- 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)));
- } catch(MsgException e) {
- Msg.info("Damn JNI stuff");
- e.printStackTrace();
- System.exit(1);
- }
+ Msg.info("[" + this.name + "/" + this.getHost().getName() + "] argc=" +
+ 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)));
}
/**
* This method runs the process. Il calls the method function that you must overwrite.
}
/**
* This method runs the process. Il calls the method function that you must overwrite.