|
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.aspects.distribution.DeploymentRule
A deployment rule parametrizes the deployment scheme of a set of objects identified by a regular expression.
Each object that is named by the naming aspect so that it matches the regular expression will be deployed regarding the deployment rule.
The deployment aspect component uses a set of deployment rules to know how to handle a newly used object.
DeploymentAC
,
Deployment
,
Topology
,
Serialized FormConstructor Summary | |
DeploymentRule(AspectComponent ac,
String type,
String nameRegexp,
String contRegexp,
boolean state)
Creates a new deployment rule in the general case. |
Method Summary | |
void |
applyTo(Object object)
Applies the rule to the given object. |
String |
getType()
Returns a readable string representation of the type of this distribution rule. |
boolean |
isApplicableTo(Object candidate)
Returns true if the deployment rule must by applied on a given object. |
boolean |
isAppliedTo(Object object)
Tells if the rule is already applied to a given object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeploymentRule(AspectComponent ac, String type, String nameRegexp, String contRegexp, boolean state)
type
- a string that contains a readable representation of
what the rule is doingnameRegexp
- a regular expression that filters the objects
to which this rule will be appliedcontRegexp
- a regular expression that defines a set of
remote container where the objects of the rule will be
deployedstate
- if true, the states of the objects are replicated,
else, it only deploys empty objectsMethod Detail |
public boolean isApplicableTo(Object candidate)
candidate
- the tested object
public boolean isAppliedTo(Object object)
object
- the object to test
public void applyTo(Object object)
object
- the object on which the deployment rule will be
applied topublic String getType()
|
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 |