Class ModCluster
- java.lang.Object
-
- io.undertow.server.handlers.proxy.mod_cluster.ModCluster
-
public class ModCluster extends java.lang.Object- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModCluster.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadvertise(MCMPConfig config)Start advertising a mcmp handler.static ModCluster.Builderbuilder(org.xnio.XnioWorker worker)static ModCluster.Builderbuilder(org.xnio.XnioWorker worker, UndertowClient client)static ModCluster.Builderbuilder(org.xnio.XnioWorker worker, UndertowClient client, org.xnio.ssl.XnioSsl xnioSsl)HttpHandlercreateProxyHandler()Get the handler proxying the requests.HttpHandlercreateProxyHandler(HttpHandler next)Get the handler proxying the requests.intgetCacheConnections()protected io.undertow.server.handlers.proxy.mod_cluster.ModClusterContainergetContainer()ModClusterControllergetController()NodeHealthCheckergetHealthChecker()longgetHealthCheckInterval()intgetMaxConnections()HttpHandlergetProxyHandler()Deprecated.longgetRemoveBrokenNodes()intgetRequestQueueSize()protected java.lang.StringgetServerID()longgetTtl()booleanisDeterministicFailover()booleanisQueueNewRequests()booleanisUseAlias()java.lang.StringrankedAffinityDelimiter()RouteParsingStrategyrouteParsingStrategy()voidstart()Startvoidstop()Stop
-
-
-
Method Detail
-
getServerID
protected java.lang.String getServerID()
-
getContainer
protected io.undertow.server.handlers.proxy.mod_cluster.ModClusterContainer getContainer()
-
getController
public ModClusterController getController()
-
getMaxConnections
public int getMaxConnections()
-
getCacheConnections
public int getCacheConnections()
-
getRequestQueueSize
public int getRequestQueueSize()
-
isQueueNewRequests
public boolean isQueueNewRequests()
-
getHealthCheckInterval
public long getHealthCheckInterval()
-
getRemoveBrokenNodes
public long getRemoveBrokenNodes()
-
getHealthChecker
public NodeHealthChecker getHealthChecker()
-
getTtl
public long getTtl()
-
isUseAlias
public boolean isUseAlias()
-
isDeterministicFailover
public boolean isDeterministicFailover()
-
routeParsingStrategy
public RouteParsingStrategy routeParsingStrategy()
-
rankedAffinityDelimiter
public java.lang.String rankedAffinityDelimiter()
-
getProxyHandler
@Deprecated public HttpHandler getProxyHandler()
Deprecated.Get the handler proxying the requests.- Returns:
- the proxy handler
-
createProxyHandler
public HttpHandler createProxyHandler()
Get the handler proxying the requests.- Returns:
- the proxy handler
-
createProxyHandler
public HttpHandler createProxyHandler(HttpHandler next)
Get the handler proxying the requests.- Returns:
- the proxy handler
-
start
public void start()
Start
-
advertise
public void advertise(MCMPConfig config) throws java.io.IOException
Start advertising a mcmp handler.- Parameters:
config- the mcmp handler config- Throws:
java.io.IOException
-
stop
public void stop()
Stop
-
builder
public static ModCluster.Builder builder(org.xnio.XnioWorker worker)
-
builder
public static ModCluster.Builder builder(org.xnio.XnioWorker worker, UndertowClient client)
-
builder
public static ModCluster.Builder builder(org.xnio.XnioWorker worker, UndertowClient client, org.xnio.ssl.XnioSsl xnioSsl)
-
-