Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ff26d50c48bd9c907fcae67abb7886ac34232c1b
[simgrid.git] / examples / java / master_slave_bypass / Slave.java
1 /* Copyright (c) 2006-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 master_slave_bypass;
8 import org.simgrid.msg.HostFailureException;
9 import org.simgrid.msg.HostNotFoundException;
10 import org.simgrid.msg.Msg;
11 import org.simgrid.msg.TimeoutException;
12 import org.simgrid.msg.TransferFailureException;
13 import org.simgrid.msg.Process;
14
15 import master_slave_bypass.FinalizeTask;
16
17 public class Slave extends Process {
18         public Slave(String hostname, String name) throws HostNotFoundException {
19                 super(hostname, name);
20         }
21         public void main(String[] args) throws TransferFailureException, HostFailureException, TimeoutException {
22         Msg.info("Slave Hello!");
23         FinalizeTask task = new FinalizeTask();
24         Msg.info("Send finalize!");
25         task.send("Jacquelin");
26         }
27 }