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. |
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
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 |
BroadcastingAC
public BroadcastingAC()
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 namesmethods
- a poincut expression that defines the methods
that will be broadcastedbroadcasterHost
- the broadcaster hostreplicasHost
- the hosts of the replicas, as a regexp