|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.AspectComponent | +--org.objectweb.jac.aspects.distribution.DeploymentAC
This aspect component implements a generic deployment aspect.
DeploymentConf
,
DeploymentRule
,
Serialized FormField Summary | |
static String |
REFS
the name of the metadata that tells whether the parameters of a methods are references (TRUE) or values (FALSE). |
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener |
FOUND_OBJECT |
Constructor Summary | |
DeploymentAC()
|
Method Summary | |
void |
createAsynchronousStubsFor(String name,
String serverHost,
String hosts)
This configuration method creates the stubs with an asynchronous type (org.objectweb.jac.core.dist.NonBlockingStubWrapper). |
void |
createStubsFor(String name,
String serverHost,
String hosts)
This configuration method creates the stubs with the default type (org.objectweb.jac.core.dist.StubWrapper). |
void |
createTypedStubsFor(String name,
String serverHost,
String hosts,
String stubType)
This configuration method creates remote-access stubs for the object called name on all the client-hosts defined by the hosts expression. |
void |
deploy(String deploymentHost,
String nameRegexp,
String containerName)
Actually deploys an object with a target host expression. |
void |
replicate(String deploymentHost,
String nameRegexp,
String contRegexp)
This configuration method creates a deployment rule that replicates an original object on a set of containers. |
void |
setParametersPassingMode(MethodItem method,
Boolean[] refs)
Defines the passing mode of the parameters for a given method. |
void |
setTransient(ClassItem classItem,
String fieldName)
This configuration method sets a field to be transient. |
Wrappee |
whenDeserialized(SerializedJacObject orgObject,
Wrappee finalObject)
Fill the field values when the forwarding is disabled for this object.. |
Wrappee |
whenSerialized(Wrappee orgObject,
SerializedJacObject finalObject)
Force the treatment of the objects that are being serialized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String REFS
Constructor Detail |
public DeploymentAC()
Method Detail |
public Wrappee whenSerialized(Wrappee orgObject, SerializedJacObject finalObject)
whenSerialized
in interface BaseProgramListener
whenSerialized
in class AspectComponent
finalObject
- the structure to store the serialized infosorgObject
- the object being serialized
SerializedJacObject
,
JacObjectOutputStream
public Wrappee whenDeserialized(SerializedJacObject orgObject, Wrappee finalObject)
whenDeserialized
in interface BaseProgramListener
whenDeserialized
in class AspectComponent
orgObject
- the JAC object that is being deserialized.finalObject
- the object being deserialized
SerializedJacObject
,
JacObjectInputStream
public void deploy(String deploymentHost, String nameRegexp, String containerName)
deploy
in interface DeploymentConf
deploymentHost
- the host from where the objects are
deployednameRegexp
- all the objects for which the name will
match this pattern will be deployed with this rulecontainerName
- the container that will hold the objectspublic void replicate(String deploymentHost, String nameRegexp, String contRegexp)
DeploymentConf
replicate
in interface DeploymentConf
deploymentHost
- the host from where the objects are
deployednameRegexp
- all the objects for which the name will match
this regular expression will be replicatedcontRegexp
- identifies the containers that will hold the
replication group (one replica per container)public void createTypedStubsFor(String name, String serverHost, String hosts, String stubType)
DeploymentConf
createTypedStubsFor
in interface DeploymentConf
name
- the name of the object the stubs are created forserverHost
- the name of the container the server is locatedhosts
- an expression telling where the stubs are deployedstubType
- the type of the stub (a StubWrapper subclass)public void createStubsFor(String name, String serverHost, String hosts)
DeploymentConf
createStubsFor
in interface DeploymentConf
name
- the name of the object the stubs are created forserverHost
- the name of the container the server is locatedhosts
- an expression telling where the stubs are deployedpublic void createAsynchronousStubsFor(String name, String serverHost, String hosts)
DeploymentConf
createAsynchronousStubsFor
in interface DeploymentConf
name
- the name of the object the stubs are created forserverHost
- the name of the container the server is locatedhosts
- an expression telling where the stubs are deployedpublic void setTransient(ClassItem classItem, String fieldName)
DeploymentConf
setTransient
in interface DeploymentConf
classItem
- the class item of the fieldfieldName
- the field namepublic void setParametersPassingMode(MethodItem method, Boolean[] refs)
DeploymentConf
When a method is fowarded to a remote host by a stub (wrapper), the parameters of this method can be passed by value (then the whole object is serialized on the local host and deserialized on the remote host) or by reference (then the object's state is not serialized and it is bounded to a remote object on the remote host).
setParametersPassingMode
in interface DeploymentConf
method
- the method that holds the parametersrefs
- TRUE or FALSE for each parameter... by default, the
parameters are passed by value
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |