org.objectweb.jac.aspects.distribution
Class LoadBalancingAC.LoadBalancingWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.distribution.LoadBalancingAC.LoadBalancingWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- Enclosing class:
- LoadBalancingAC
- public static class LoadBalancingAC.LoadBalancingWrapper
- extends Wrapper
This inner-wrapper handles the load-balancing wrapping methods that
actually implement the load-balancing algorithms.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
LoadBalancingAC.LoadBalancingWrapper
public LoadBalancingAC.LoadBalancingWrapper(AspectComponent ac,
String hostExpr)
invalidate
public void invalidate()
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
Throwable
roundTripBalance
public Object roundTripBalance(Interaction interaction)
- Performs a round-trip load-balancing.
randomBalance
public Object randomBalance(Interaction interaction)
- Performs a random load-balancing.