Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'hypervisor' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into hypervisor
[simgrid.git] / examples / scala / master_slave_bypass / Slave.scala
1 /*
2  * Copyright 2006-2012. The SimGrid Team. 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
9 import org.simgrid.msg.HostFailureException
10 import org.simgrid.msg.HostNotFoundException
11 import org.simgrid.msg.Msg
12 import org.simgrid.msg.TimeoutException
13 import org.simgrid.msg.TransferFailureException
14 import org.simgrid.msg.Process
15
16 class Slave(hostname:String, name:String) extends Process(hostname, name) {
17   def main(args:Array[String]) {
18     Msg.info("Slave Hello!")
19     val task = new FinalizeTask()
20     Msg.info("Send finalize!")
21     task.send("alice")
22   }
23 }