public class LoadBalancingInterceptor extends AbstractInterceptor
Interceptor.Flow
ELEMENT_NAME, id, name
router
Constructor and Description |
---|
LoadBalancingInterceptor() |
getDisplayName, getElementName, getFlow, getId, getLongDescription, setDisplayName, setFlow, setId, write
getRouter, setRouter
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, toXml, writeIfNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRouter, setRouter
parse
public Outcome handleRequest(Exchange exc) throws Exception
handleRequest
in interface Interceptor
handleRequest
in class AbstractInterceptor
Exception
public Outcome handleResponse(Exchange exc) throws Exception
handleResponse
in interface Interceptor
handleResponse
in class AbstractInterceptor
Exception
public void setName(String name) throws Exception
AbstractInterceptor.setDisplayName(String)
, but the balancer's name
set in the proxy configuration to identify this balancer.Exception
public String getName()
AbstractInterceptor.getDisplayName()
, but the balancer's name set in
the proxy configuration to identify this balancer.public DispatchingStrategy getDispatchingStrategy()
public void setDispatchingStrategy(DispatchingStrategy strategy)
public AbstractSessionIdExtractor getSessionIdExtractor()
public void setSessionIdExtractor(AbstractSessionIdExtractor sessionIdExtractor)
public boolean isFailOver()
public void setFailOver(boolean failOver)
public Balancer getClusterManager()
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
protected void writeInterceptor(XMLStreamWriter out) throws XMLStreamException
writeInterceptor
in class AbstractInterceptor
XMLStreamException
protected void parseAttributes(XMLStreamReader token) throws Exception
parseAttributes
in class AbstractInterceptor
Exception
protected void parseChildren(XMLStreamReader token, String child) throws Exception
parseChildren
in class AbstractXmlElement
Exception
public String getHelpId()
getHelpId
in interface Interceptor
getHelpId
in class AbstractInterceptor
public String getShortDescription()
getShortDescription
in interface Interceptor
getShortDescription
in class AbstractInterceptor
Copyright © 2012. All Rights Reserved.