Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill a redudant example
[simgrid.git] / examples / java / startKillTime / Master.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 startKillTime;
8 import org.simgrid.msg.Host;
9 import org.simgrid.msg.HostFailureException;
10 import org.simgrid.msg.Msg;
11 import org.simgrid.msg.Process;
12 import org.simgrid.msg.TimeoutException;
13 import org.simgrid.msg.TransferFailureException;
14
15 public class Master extends Process {
16   public Master(Host host, String name, String[]args) {
17     super(host,name,args);
18   }
19
20   public void main(String[] args) throws TransferFailureException, HostFailureException, TimeoutException {
21     Msg.info("Hello!");
22     waitFor(10.0);
23     Msg.info("OK, goodbye now.");
24   }
25 }