Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #1 from mquinson/master
[simgrid.git] / examples / scala / master_slave_bypass / Slave.scala
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 master_slave_bypass
9
10 import org.simgrid.msg.HostFailureException
11 import org.simgrid.msg.HostNotFoundException
12 import org.simgrid.msg.Msg
13 import org.simgrid.msg.TimeoutException
14 import org.simgrid.msg.TransferFailureException
15 import org.simgrid.msg.Process
16
17 class Slave(hostname:String, name:String) extends Process(hostname, name) {
18   def main(args:Array[String]) {
19     Msg.info("Slave Hello!")
20     val task = new FinalizeTask()
21     Msg.info("Send finalize!")
22     task.send("Tremblay")
23   }
24 }