Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / deprecated / java / process / kill / Main.java
1 /* Copyright (c) 2006-2020. 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 process.kill;
8
9 import org.simgrid.msg.Msg;
10 import org.simgrid.msg.MsgException;
11
12 public class Main {
13   private Main() {
14     throw new IllegalAccessError("Utility class");
15   }
16
17   public static void main(String[] args) {
18     /* initialize the MSG simulation. Must be done before anything else (even logging). */
19     Msg.init(args);
20     Msg.createEnvironment(args[0]);
21
22     /* bypass deploymemt */
23     try {
24       Killer killer = new Killer("Jacquelin","killer");
25       killer.start();
26     } catch (MsgException e){
27       Msg.error("Create processes failed!");
28     }
29
30     /*  execute the simulation. */
31     Msg.run();
32   }
33 }