Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fixed energy plugin: getCurrentWattsValue was not returning watts_off when host is off
[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     if(args.length < 1) {
18       Msg.info("Usage   : Storage platform_file ");
19       Msg.info("example : Storage ../platforms/storage/storage.xml ");
20       System.exit(1);
21     }
22
23     Msg.createEnvironment(args[0]);
24
25     Host[] hosts = Host.all();
26     new io.storage.Client(hosts[3],0).start();
27
28     Msg.run();
29     }
30 }