4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package.
13 public class Slave extends simgrid.msg.Process {
14 public void main(String[] args) throws JniException, NativeException {
17 Channel channel = new Channel(0);
20 Task t = channel.get();
22 if (t instanceof FinalizeTask) {
25 BasicTask task = (BasicTask)t;
26 Msg.info("Received \"" + task.getName() + "\" ");
28 Msg.info("Processing \"" + task.getName() + "\" ");
30 Msg.info("\"" + task.getName() + "\" done ");
33 Msg.info("Received Finalize. I'm done. See you!");