Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'mc'
[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
8
9 package io;
10
11 import org.simgrid.msg.Host;
12 import org.simgrid.msg.Msg;
13 import org.simgrid.msg.MsgException;
14
15
16
17 public class Storage {
18   public static void main(String[] args) throws MsgException {          
19                 Msg.init(args);
20                 if(args.length < 1) {
21                         Msg.info("Usage   : storage platform_file ");
22                 Msg.info("example : storage platform.xml ");
23                 System.exit(1);
24             }    
25                 Msg.createEnvironment(args[0]);
26                 
27                 Host[] hosts = Host.all();              
28                 new io.Client(hosts[0],0).start();
29
30                 Msg.run();              
31     }
32 }