|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jac.core.dist.Deployment
This class deploies a set of objects on a set of host given a deployment mapping style (a function that gives the objects location in the topology).
It can be used by an aspect component that would implement a distribution aspect.
| Constructor Summary | |
Deployment(AspectComponent ac,
Topology topology)
Creates a new deployment. |
|
| Method Summary | |
RemoteRef[] |
deploy(Object[] objects)
Equals to deploy( objects, false ). |
RemoteRef[] |
deploy(Object[] objects,
boolean forward)
Deploys a set of JAC object that are centralized on the local host to the Topology. |
RemoteRef[] |
deployStruct(Object[] objects)
Equals to deployStruct( objects, false ). |
RemoteRef[] |
deployStruct(Object[] objects,
boolean forward)
Deploys a set of JAC object that are centralized on the local host to the Topology. |
RemoteRef[] |
replicate(Object object)
Equals to replicate( object, -1 ). |
RemoteRef[] |
replicate(Object object,
int forwardTo)
Replicates a JAC object that is located on the local host to the hosts of the Topology. |
RemoteRef[] |
replicateStruct(Object object)
Equals to replicateStruct( object, -1 ). |
RemoteRef[] |
replicateStruct(Object object,
int forwardTo)
Replicates a JAC object that is located on the local host to the hosts of the Topology. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Deployment(AspectComponent ac,
Topology topology)
topology - the topology used by the deployment| Method Detail |
public RemoteRef[] deployStruct(Object[] objects,
boolean forward)
Do not copy the state of the objects.
objects - a set of object to deploy on the topologyforward - if true, create a stub wrapper on each local
object that forwards all the calls to the remotly deployed
objects
deploy(Object[],boolean)public RemoteRef[] deployStruct(Object[] objects)
objects - the object to deploy
deploy(Object[],boolean)
public RemoteRef[] deploy(Object[] objects,
boolean forward)
objects - a set of object to deploy on the topologyforward - if true, create a stub wrapper on each local
object that forwards all the calls to the remotly deployed
objects
deployStruct(Object[],boolean)public RemoteRef[] deploy(Object[] objects)
objects - the object to deploy
deploy(Object[],boolean)
public RemoteRef[] replicate(Object object,
int forwardTo)
object - the local object to replicateforwardTo - the index of the topology where the local
object will forward the calls (if -1 or not valid for the
topology then do not forward any call)
replicateStruct(Object,int)public RemoteRef[] replicate(Object object)
object - the object to replicate
replicate(Object,int)
public RemoteRef[] replicateStruct(Object object,
int forwardTo)
Do not copy the objects states.
object - the local object to replicateforwardTo - the index of the topology where the local
object will forward the calls (if -1 or not valid for the
topology then do not forward any call)
replicate(Object,int)public RemoteRef[] replicateStruct(Object object)
object - the object to replicate
replicateStruct(Object,int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||