Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
shrinking cmake in java examples
[simgrid.git] / examples / java / io / Storage.java
1 /* Copyright (c) 2012-2014. 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 io;
8 import org.simgrid.msg.Msg;
9 import org.simgrid.msg.Host;
10 import org.simgrid.msg.MsgException;
11
12 public class Storage {
13   public static void main(String[] args) throws MsgException {
14     Msg.init(args);
15     if(args.length < 1) {
16       Msg.info("Usage   : Storage platform_file ");
17       Msg.info("example : Storage ../platforms/storage/storage.xml ");
18       System.exit(1);
19     }
20
21     Msg.createEnvironment(args[0]);
22
23     Host[] hosts = Host.all();
24     new io.Client(hosts[0],0).start();
25
26     Msg.run();
27     }
28 }