1 package org.objectweb.proactive.core.group; 2 3 import org.objectweb.proactive.ProActive; 4 5 6 11 public class ProcessForGroupCreation extends AbstractProcessForGroup implements Runnable { 12 private ProxyForGroup proxyGroup; 13 private String className; 14 private Object [] param; 15 private String node; 16 private int index; 17 18 public ProcessForGroupCreation(ProxyForGroup proxyGroup, String className, 19 Object [] param, String node, int index) { 20 this.proxyGroup = proxyGroup; 21 this.className = className; 22 this.param = param; 23 this.node = node; 24 this.index = index; 25 } 26 27 28 public void run() { 29 try { 30 this.proxyGroup.set(this.index,ProActive.newActive(className, param, node)); 31 } catch (Exception e) { 33 e.printStackTrace(); 34 } 35 } 36 37 38 public int getMemberListSize() { 39 return 1; 40 } 41 42 } 43 | Popular Tags |