Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a simple README to that directory to help users
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Feb 2010 23:05:46 +0000 (23:05 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Feb 2010 23:05:46 +0000 (23:05 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7131 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/java/basic/README [new file with mode: 0644]
src/java/jmsg_channel.c [deleted file]
src/java/jmsg_channel.h [deleted file]

diff --git a/examples/java/basic/README b/examples/java/basic/README
new file mode 100644 (file)
index 0000000..9207911
--- /dev/null
@@ -0,0 +1,11 @@
+This is a somehow basic master/slaves example.
+
+There is 3 kind of processes:
+ * Master: creates some tasks, and dispatches them to its slaves
+ * Forwarder: get tasks from master, and dispatch them further
+ * Slave: get tasks from either master or forwarder, and run them
+At the end of the execution:
+ - the master sends FinalizeTask to every known slave to stop them
+ - On reception of FT, forwarders send FT to every slave, and stop.
+ - On reception of FinalizeTask, slaves stop.
\ No newline at end of file
diff --git a/src/java/jmsg_channel.c b/src/java/jmsg_channel.c
deleted file mode 100644 (file)
index 4b3d34c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the implementation of the functions in relation with the java
- * channel instance. 
- */
-
-#include "jmsg_channel.h"
-#include "jmsg.h"
-#include "jxbt_utilities.h"
-
-jint jchannel_get_id(jobject jchannel, JNIEnv * env)
-{
-  jmethodID id = jxbt_get_smethod(env, "simgrid/msg/Channel", "getId", "()I");
-
-  if (!id)
-    return -1;
-
-  return (*env)->CallIntMethod(env, jchannel, id);
-}
diff --git a/src/java/jmsg_channel.h b/src/java/jmsg_channel.h
deleted file mode 100644 (file)
index f6aa094..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the declarations of the functions in relation with the java
- * channel instance.
- */
-
-#ifndef MSG_JCHANNEL_H
-#define MSG_JCHANNEL_H
-
-#include <jni.h>
-
-/**
- * This function returns the id of a java channel instance.
- *
- * @param jchannel             The channel to get the id.
- * @param env                  The environment of the current thread.
- *
- * @return                             The id of the channel.
- */
-jint jchannel_get_id(jobject jchannel, JNIEnv * env);
-
-#endif /* !MSG_JCHANNEL_H */