|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.group.spmd.ProSPMD
This class provides a static method to build (an deploy) an 'SPMD' group of active objects with all references between them to communicate.
For instance, the following code builds objects of type A
on nodes
node1,node2,...
, with parameters param1,param2,...
and build for each object created its diffusion group to communicate with the others.
Object[] params = {param1,param2,...}; Node[] nodes = {node1,node2,...}; A group = (A) ProSPMD.newSPMDGroup("A", params, nodes);
Constructor Summary | |
ProSPMD()
|
Method Summary | |
int |
getMyRank()
Returns the rank (position) of the object in the Group |
int |
getMySPMDGroupSize()
Returns the size of the SPMD group of this |
static java.lang.Object |
getSPMDGroup()
Returns the SPMD group of this |
static java.lang.Object |
newSPMDGroup(java.lang.String className,
java.lang.Object[][] params,
Node[] nodeList)
Creates an object representing a group (a typed group) and creates members with params cycling on nodeList. |
static java.lang.Object |
newSPMDGroup(java.lang.String className,
java.lang.Object[][] params,
java.lang.String[] nodeList)
|
static void |
setSPMDGroupOnThis(java.lang.Object o)
Set the SPMD group for this |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProSPMD()
Method Detail |
public static java.lang.Object newSPMDGroup(java.lang.String className, java.lang.Object[][] params, Node[] nodeList) throws java.lang.ClassNotFoundException, ClassNotReifiableException, ActiveObjectCreationException, NodeException
ActiveObjectCreationException
- if a problem occur while creating the stub or the body
java.lang.ClassNotFoundException
- if the Class corresponding to className
can't be found.
ClassNotReifiableException
- if the Class corresponding to className
can't be reify.
NodeException
- if the node was null and that the DefaultNode cannot be createdpublic static java.lang.Object newSPMDGroup(java.lang.String className, java.lang.Object[][] params, java.lang.String[] nodeList) throws java.lang.ClassNotFoundException, ClassNotReifiableException, ActiveObjectCreationException, NodeException
java.lang.ClassNotFoundException
ClassNotReifiableException
ActiveObjectCreationException
NodeException
public static void setSPMDGroupOnThis(java.lang.Object o)
o
- - the new SPMD grouppublic static java.lang.Object getSPMDGroup()
public int getMySPMDGroupSize()
public int getMyRank()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |