Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill some memory leaks.
[simgrid.git] / examples / java / startKillTime / Master.java
1 /*
2  * Copyright (c) 2006-2013. The SimGrid Team.
3  * All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. 
7  */
8 package startKillTime;
9 import org.simgrid.msg.Host;
10 import org.simgrid.msg.HostFailureException;
11 import org.simgrid.msg.Msg;
12 import org.simgrid.msg.Process;
13 import org.simgrid.msg.TimeoutException;
14 import org.simgrid.msg.TransferFailureException;
15
16
17 public class Master extends Process {
18         public Master(Host host, String name, String[]args) {
19                 super(host,name,args);
20         } 
21         public void main(String[] args) throws TransferFailureException, HostFailureException, TimeoutException {
22                 Msg.info("Hello!");
23                 waitFor(10.0);
24                 Msg.info("OK, goodbye now.");
25         
26   }
27 }