public class ModClusterListener extends ModClusterConfig implements TomcatConnectorConfiguration, org.apache.catalina.LifecycleListener, org.jboss.modcluster.load.LoadBalanceFactorProviderFactory, ModClusterServiceMBean
DEFAULT_SOCKET_ADDRESS
Modifier | Constructor and Description |
---|---|
|
ModClusterListener() |
protected |
ModClusterListener(ModClusterServiceMBean mbean,
org.apache.catalina.LifecycleListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
addProxy(String host,
int port) |
org.jboss.modcluster.load.LoadBalanceFactorProvider |
createLoadBalanceFactorProvider() |
boolean |
disable() |
boolean |
disableContext(String hostName,
String contextPath) |
boolean |
enable() |
boolean |
enableContext(String hostName,
String contextPath) |
String |
getAdvertiseGroupAddress() |
int |
getAdvertisePort() |
String |
getConnectorAddress()
Returns optional connector address.
|
Integer |
getConnectorPort()
Returns optional connector port.
|
String |
getExcludedContexts() |
int |
getInitialLoad() |
Class<? extends JvmRouteFactory> |
getJvmRouteFactoryClass() |
float |
getLoadDecayFactor()
Returns the factor by which the contribution of historical load values to the load factor calculation should
exponentially decay.
|
int |
getLoadHistory()
Returns the number of historic load values used when calculating the load factor.
|
double |
getLoadMetricCapacity() |
String |
getLoadMetricClass()
Returns the class name of the configured load metric.
|
Map<InetSocketAddress,String> |
getProxyConfiguration() |
String |
getProxyConfigurationString() |
Map<InetSocketAddress,String> |
getProxyInfo() |
String |
getProxyInfoString() |
String |
getProxyList() |
void |
lifecycleEvent(org.apache.catalina.LifecycleEvent event) |
Map<InetSocketAddress,String> |
ping() |
Map<InetSocketAddress,String> |
ping(String jvmRoute) |
Map<InetSocketAddress,String> |
ping(String scheme,
String host,
int port) |
void |
refresh() |
void |
removeProxy(String host,
int port) |
void |
reset() |
void |
setAdvertiseGroupAddress(String advertiseGroupAddress) |
void |
setAdvertiseInterface(String advertiseInterface) |
void |
setAdvertisePort(int advertisePort) |
void |
setConnectorAddress(String connectorAddress) |
void |
setConnectorPort(int connectorPort) |
void |
setExcludedContexts(String contexts) |
void |
setInitialLoad(int initialLoad) |
void |
setJvmRouteFactoryClass(Class<? extends JvmRouteFactory> factoryClass) |
void |
setLoadDecayFactor(float decayFactor)
Sets the factor by which the contribution of historical load values to the load factor calculation should exponentially
decay.
|
void |
setLoadDecayFactor(String decayFactor)
String-based variant of
setLoadDecayFactor(float) to set float decay factor used by Tomcat modeler. |
void |
setLoadHistory(int history)
Sets the number of historic load values used when calculating the load factor.
|
void |
setLoadMetricCapacity(String capacity)
Sets the capacity (i.e.
|
void |
setLoadMetricClass(String loadMetricClass)
Sets the class of the desired load metric
|
void |
setProxyList(String addresses) |
void |
setSessionDrainingStrategy(String sessionDrainingStrategy) |
boolean |
stop(long timeout) |
boolean |
stop(long timeout,
TimeUnit unit) |
boolean |
stopContext(String host,
String path,
long timeout) |
boolean |
stopContext(String host,
String path,
long timeout,
TimeUnit unit) |
getAdvertise, getAdvertiseInterface, getAdvertiseSecurityKey, getAdvertiseSocketAddress, getAdvertiseThreadFactory, getBalancer, getExcludedContextsPerHost, getFlushPackets, getFlushWait, getJvmRouteFactory, getLoadBalancingGroup, getMaxAttempts, getNodeTimeout, getPing, getProxies, getProxyConfigurations, getProxyURL, getSessionDrainingStrategy, getSmax, getSocketFactory, getSocketTimeout, getSslCertificateEncodingAlgorithm, getSslCiphers, getSslCrlFile, getSslKeyAlias, getSslKeyStore, getSslKeyStorePassword, getSslKeyStoreProvider, getSslKeyStoreType, getSslProtocol, getSslTrustAlgorithm, getSslTrustMaxCertLength, getSslTrustStore, getSslTrustStorePassword, getSslTrustStoreProvider, getSslTrustStoreType, getStickySession, getStickySessionForce, getStickySessionRemove, getStopContextTimeout, getStopContextTimeoutUnit, getTtl, getWorkerTimeout, isAutoEnableContexts, isSsl, setAdvertise, setAdvertiseInterface, setAdvertiseSecurityKey, setAdvertiseSocketAddress, setAdvertiseThreadFactory, setAutoEnableContexts, setBalancer, setExcludedContextsPerHost, setFlushPackets, setFlushWait, setJvmRouteFactory, setLoadBalancingGroup, setMaxAttempts, setNodeTimeout, setPing, setProxies, setProxyConfigurations, setProxyURL, setSessionDrainingStrategy, setSmax, setSocketTimeout, setSsl, setSslCertificateEncodingAlgorithm, setSslCiphers, setSslCrlFile, setSslKeyAlias, setSslKeyStore, setSslKeyStorePassword, setSslKeyStoreProvider, setSslKeyStoreType, setSslProtocol, setSslTrustAlgorithm, setSslTrustMaxCertLength, setSslTrustStore, setSslTrustStorePassword, setSslTrustStoreProvider, setSslTrustStoreType, setStickySession, setStickySessionForce, setStickySessionRemove, setStopContextTimeout, setStopContextTimeoutUnit, setTtl, setWorkerTimeout
public ModClusterListener()
protected ModClusterListener(ModClusterServiceMBean mbean, org.apache.catalina.LifecycleListener listener)
public org.jboss.modcluster.load.LoadBalanceFactorProvider createLoadBalanceFactorProvider()
createLoadBalanceFactorProvider
in interface org.jboss.modcluster.load.LoadBalanceFactorProviderFactory
public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
lifecycleEvent
in interface org.apache.catalina.LifecycleListener
public Class<? extends JvmRouteFactory> getJvmRouteFactoryClass()
public void setJvmRouteFactoryClass(Class<? extends JvmRouteFactory> factoryClass)
public String getLoadMetricClass()
LoadMetric
public void setLoadMetricClass(String loadMetricClass)
loadMetricClass
- a class implementing LoadMetric
IllegalArgumentException
- if metric class could not be loadedpublic float getLoadDecayFactor()
public void setLoadDecayFactor(float decayFactor)
decayFactor
- a positive numberpublic void setLoadDecayFactor(String decayFactor)
setLoadDecayFactor(float)
to set float decay factor used by Tomcat modeler.decayFactor
- a positive numberpublic int getLoadHistory()
public void setLoadHistory(int history)
history
- public double getLoadMetricCapacity()
public void setLoadMetricCapacity(String capacity)
getLoadMetricClass()
capacity
- a load capacitypublic int getInitialLoad()
public void setInitialLoad(int initialLoad)
public void addProxy(String host, int port)
addProxy
in interface ModClusterServiceMBean
public boolean disable()
disable
in interface ModClusterServiceMBean
public boolean disableContext(String hostName, String contextPath)
disableContext
in interface ModClusterServiceMBean
public Map<InetSocketAddress,String> ping()
ping
in interface ModClusterServiceMBean
public Map<InetSocketAddress,String> ping(String jvmRoute)
ping
in interface ModClusterServiceMBean
public Map<InetSocketAddress,String> ping(String scheme, String host, int port)
ping
in interface ModClusterServiceMBean
public boolean enable()
enable
in interface ModClusterServiceMBean
public boolean enableContext(String hostName, String contextPath)
enableContext
in interface ModClusterServiceMBean
public Map<InetSocketAddress,String> getProxyConfiguration()
getProxyConfiguration
in interface ModClusterServiceMBean
public Map<InetSocketAddress,String> getProxyInfo()
getProxyInfo
in interface ModClusterServiceMBean
public void refresh()
refresh
in interface ModClusterServiceMBean
public void removeProxy(String host, int port)
removeProxy
in interface ModClusterServiceMBean
public void reset()
reset
in interface ModClusterServiceMBean
public boolean stop(long timeout, TimeUnit unit)
stop
in interface ModClusterServiceMBean
public boolean stopContext(String host, String path, long timeout, TimeUnit unit)
stopContext
in interface ModClusterServiceMBean
public String getProxyConfigurationString()
public String getProxyInfoString()
public boolean stop(long timeout)
public String getConnectorAddress()
TomcatConnectorConfiguration
getConnectorAddress
in interface TomcatConnectorConfiguration
public void setConnectorAddress(String connectorAddress)
public Integer getConnectorPort()
TomcatConnectorConfiguration
getConnectorPort
in interface TomcatConnectorConfiguration
public void setConnectorPort(int connectorPort)
public String getAdvertiseGroupAddress()
public void setAdvertiseGroupAddress(String advertiseGroupAddress)
public int getAdvertisePort()
public void setAdvertisePort(int advertisePort)
public void setAdvertiseInterface(String advertiseInterface)
public void setProxyList(String addresses)
public String getProxyList()
public void setExcludedContexts(String contexts)
public String getExcludedContexts()
public void setSessionDrainingStrategy(String sessionDrainingStrategy)
Copyright © 2018 JBoss by Red Hat. All rights reserved.