JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.distribution
Class BroadcastingAC

java.lang.Object
  |
  +--org.objectweb.jac.core.AspectComponent
        |
        +--org.objectweb.jac.aspects.distribution.BroadcastingAC
All Implemented Interfaces:
BaseProgramListener, BroadcastingConf, Serializable

public class BroadcastingAC
extends AspectComponent
implements BroadcastingConf

This aspect component implements a simple broadcasting aspect.

Principles: a broadcaster, located on a given host forwards some calls to a set of replicas located on remote hosts.

Author:
Renaud Pawlak
See Also:
BroadcastingConf, Serialized Form

Nested Class Summary
 class BroadcastingAC.BroadcastingWrapper
          This wrapper wraps the broadcaster with a wrapping method that broadcast all the calls to the remote replicas.
 
Field Summary
 
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
BroadcastingAC()
           
 
Method Summary
 void addBroadcaster(String wrappeeName, String methods, String broadcasterHost, String replicasHost)
          This configuration method allows the user to define a broacaster.
 
Methods inherited from class org.objectweb.jac.core.AspectComponent
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance, whenUsingNewInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastingAC

public BroadcastingAC()
Method Detail

addBroadcaster

public void addBroadcaster(String wrappeeName,
                           String methods,
                           String broadcasterHost,
                           String replicasHost)
Description copied from interface: BroadcastingConf
This configuration method allows the user to define a broacaster.

Specified by:
addBroadcaster in interface BroadcastingConf
Parameters:
wrappeeName - the broadcaster object and replicas names
methods - a poincut expression that defines the methods that will be broadcasted
broadcasterHost - the broadcaster host
replicasHost - the hosts of the replicas, as a regexp

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli