00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 package org.objectweb.proactive.core.group;
00032
00033 import org.objectweb.proactive.ProActive;
00034 import org.objectweb.proactive.core.node.Node;
00035
00036
00042 public class ProcessForGroupCreation extends AbstractProcessForGroup
00043 implements Runnable {
00044 private ProxyForGroup proxyGroup;
00045 private String className;
00046 private Class[] genericParameters;
00047 private Object[] param;
00048 private Node node;
00049 private int index;
00050
00051 public ProcessForGroupCreation(ProxyForGroup proxyGroup, String className, Class[] genericParameters,
00052 Object[] param, Node node, int index) {
00053 this.proxyGroup = proxyGroup;
00054 this.className = className;
00055 this.genericParameters = genericParameters;
00056 this.param = param;
00057 this.node = node;
00058 this.index = index;
00059 }
00060
00061 public void run() {
00062 try {
00063 this.proxyGroup.set(this.index,
00064 ProActive.newActive(className, genericParameters, param, node));
00065
00066 } catch (Exception e) {
00067 e.printStackTrace();
00068 }
00069 }
00070
00071 public int getMemberListSize() {
00072 return 1;
00073 }
00074 }