1 /* Master of a basic master/slave example in Java */
3 /* Copyright (c) 2006-2014. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
10 import org.simgrid.msg.Msg;
11 import org.simgrid.msg.Process;
12 import org.simgrid.msg.MsgException;
13 import org.simgrid.msg.HostNotFoundException;
17 public class Killer extends Process {
18 public Killer(String hostname, String name) throws HostNotFoundException {
19 super(hostname, name);
21 public void main(String[] args) throws MsgException {
22 Victim poorVictim = null;
25 poorVictim = new Victim("Boivin","victim");
27 } catch (MsgException e){
28 System.out.println("Cannot create the victim process!");
31 Msg.info("Resume Process");
34 Msg.info("Kill Process");
37 Msg.info("Ok, goodbye now.");