Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the supernovae exploded: let's split the archive and move bindings to separate packages
[simgrid.git] / examples / java / basic / Slave.java
diff --git a/examples/java/basic/Slave.java b/examples/java/basic/Slave.java
deleted file mode 100644 (file)
index 5019044..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier         
- * All rights reserved. 
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. 
- */
-
-import simgrid.msg.*;
-
-public class Slave extends simgrid.msg.Process {
-   public void main(String[] args) throws JniException, NativeException {
-      Msg.info("Hello !");
-      
-      Channel channel = new Channel(0);
-
-      while(true) { 
-        Task t = channel.get();        
-        
-        if (t instanceof FinalizeTask) {
-           break;
-        }
-        BasicTask task = (BasicTask)t;
-        Msg.info("Received \"" + task.getName() + "\" ");
-                
-        Msg.info("Processing \"" + task.getName() +  "\" ");    
-        task.execute();
-        Msg.info("\"" + task.getName() + "\" done ");
-       }
-       
-      Msg.info("Received Finalize. I'm done. See you!");
-    }
-}
\ No newline at end of file