Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #2 from mquinson/master
[simgrid.git] / examples / java / suspend / Suspend.java
1 /* Copyright (c) 2006-2014, 2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package suspend;
8 import org.simgrid.msg.Msg;
9
10 public class Suspend {
11   public static void main(String[] args) {
12     Msg.init(args);
13     if(args.length < 2) {
14       Msg.info("Usage   : Suspend platform_file deployment_file");
15       Msg.info("example : Suspend ../platforms/platform.xml suspendDeployment.xml");
16       System.exit(1);
17     }
18     /* construct the platform and deploy the application */
19     Msg.createEnvironment(args[0]);
20     Msg.deployApplication(args[1]);
21
22     /*  execute the simulation. */
23     Msg.run();
24   }
25 }