Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into fix/execute_benched
[simgrid.git] / examples / java / io / storage / Main.java
1 /* Copyright (c) 2012-2017. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 package io.storage;
7 import org.simgrid.msg.Msg;
8 import org.simgrid.msg.Host;
9
10 public class Main {
11   private Main() {
12     throw new IllegalAccessError("Utility class");
13   }
14
15   public static void main(String[] args) {
16     Msg.init(args);
17     Msg.fileSystemInit();
18     if(args.length < 1) {
19       Msg.info("Usage   : Storage platform_file ");
20       Msg.info("example : Storage ../platforms/storage/storage.xml ");
21       System.exit(1);
22     }
23
24     Msg.createEnvironment(args[0]);
25
26     Host[] hosts = Host.all();
27     new io.storage.Client(hosts[3],0).start();
28
29     Msg.run();
30     }
31 }