public class LoadBalancerInterceptor extends Interceptor
Manageable.State| Modifier and Type | Field and Description |
|---|---|
protected Map<Pattern,Descriptor> |
descriptors |
static String |
FROM_LOAD_BALANCER_PARAMETER |
static String |
LB_DISPATCH_STATEGY |
static String |
LB_FORWARD_STATEGY |
static String |
LB_PROPERTY_NAME |
static String |
RESULT_FORWARD_PROPERTY |
protected Map<Pattern,String> |
strategies |
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE| Constructor and Description |
|---|
LoadBalancerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
FunctionResult |
afterFunctionCall(FunctionRequest functionRequest,
FunctionResult xinsResult,
HttpServletResponse httpResponse) |
FunctionRequest |
beforeFunctionCall(HttpServletRequest httpRequest,
FunctionRequest functionRequest) |
protected void |
deinitImpl()
Deinitializes this instance (actual implementation).
|
protected void |
initImpl(Map<String,String> properties)
Performs the initialization procedure (actual implementation).
|
afterCallingConvention, beforeCallingConvention, beginRequest, endRequest, getApiassertUsable, bootstrap, bootstrapImpl, deinit, getState, init, isBootstrapped, isUsablepublic static final String FROM_LOAD_BALANCER_PARAMETER
public static final String RESULT_FORWARD_PROPERTY
public static final String LB_PROPERTY_NAME
public static final String LB_FORWARD_STATEGY
public static final String LB_DISPATCH_STATEGY
protected Map<Pattern,Descriptor> descriptors
protected void initImpl(Map<String,String> properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException
ManageableManageable.init(Map), the state and the
argument will have been checked and the state will have been set to
Manageable.INITIALIZING.
The implementation of this method in class Manageable is
empty.
initImpl in class Manageableproperties - the initialization properties, not null.MissingRequiredPropertyException - if a required property is not given.InvalidPropertyValueException - if the value of a certain property is invalid.InitializationException - if the initialization failed, for any other reason.protected void deinitImpl()
ManageableManageable.deinit() each time the latter is called and it
finds that the state is correct. The state will have been set to
Manageable.DEINITIALIZING.deinitImpl in class Manageablepublic FunctionRequest beforeFunctionCall(HttpServletRequest httpRequest, FunctionRequest functionRequest)
beforeFunctionCall in class Interceptorpublic FunctionResult afterFunctionCall(FunctionRequest functionRequest, FunctionResult xinsResult, HttpServletResponse httpResponse)
afterFunctionCall in class InterceptorSee http://www.xins.org/.