Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d08846859847b3f7f7bd20ba4df58cc03093d0b3
[simgrid.git] / examples / java / cloud / migration-test / src / Main.java
1 import org.simgrid.msg.Host;
2 import org.simgrid.msg.HostNotFoundException;
3 import org.simgrid.msg.Msg;
4 import org.simgrid.msg.NativeException;
5
6 public class Main {
7     private static boolean endOfTest = false;
8
9     public static void setEndOfTest(){
10         endOfTest=true;
11     }
12
13     public static boolean isEndOfTest(){
14         return endOfTest;
15     }
16
17     public static void main(String[] args) throws NativeException {
18        /* Init. internal values */
19         Msg.init(args);
20
21        /* construct the platform and deploy the application */
22         Msg.createEnvironment("./CONFIG/platform_simple.xml");
23         Msg.deployApplication("./CONFIG/deploy_simple.xml");
24
25         Msg.run();
26
27
28     }
29 }