Class ModClusterListener

    • Constructor Detail

      • ModClusterListener

        public ModClusterListener()
    • Method Detail

      • createLoadBalanceFactorProvider

        public org.jboss.modcluster.load.LoadBalanceFactorProvider createLoadBalanceFactorProvider()
        Specified by:
        createLoadBalanceFactorProvider in interface org.jboss.modcluster.load.LoadBalanceFactorProviderFactory
      • lifecycleEvent

        public void lifecycleEvent​(org.apache.catalina.LifecycleEvent event)
        Specified by:
        lifecycleEvent in interface org.apache.catalina.LifecycleListener
      • setJvmRouteFactoryClass

        public void setJvmRouteFactoryClass​(Class<? extends JvmRouteFactory> factoryClass)
      • getLoadMetricClass

        public String getLoadMetricClass()
        Returns the class name of the configured load metric.
        Returns:
        the name of a class implementing LoadMetric
      • setLoadMetricClass

        public void setLoadMetricClass​(String loadMetricClass)
        Sets the class of the desired load metric
        Parameters:
        loadMetricClass - a class implementing LoadMetric
        Throws:
        IllegalArgumentException - if metric class could not be loaded
      • getLoadDecayFactor

        public float getLoadDecayFactor()
        Returns the factor by which the contribution of historical load values to the load factor calculation should exponentially decay.
        Returns:
        the configured load decay factor
      • setLoadDecayFactor

        public void setLoadDecayFactor​(float decayFactor)
        Sets the factor by which the contribution of historical load values to the load factor calculation should exponentially decay.
        Parameters:
        decayFactor - a positive number
      • setLoadDecayFactor

        public void setLoadDecayFactor​(String decayFactor)
        String-based variant of setLoadDecayFactor(float) to set float decay factor used by Tomcat modeler.
        Parameters:
        decayFactor - a positive number
      • getLoadHistory

        public int getLoadHistory()
        Returns the number of historic load values used when calculating the load factor.
        Returns:
        the configured load history
      • setLoadHistory

        public void setLoadHistory​(int history)
        Sets the number of historic load values used when calculating the load factor.
        Parameters:
        history -
      • getLoadMetricCapacity

        public double getLoadMetricCapacity()
      • setLoadMetricCapacity

        public void setLoadMetricCapacity​(String capacity)
        Sets the capacity (i.e. maximum expected value) of the load values returned by the load metric specified by getLoadMetricClass()
        Parameters:
        capacity - a load capacity
      • getInitialLoad

        public int getInitialLoad()
      • setInitialLoad

        public void setInitialLoad​(int initialLoad)
      • getProxyConfigurationString

        public String getProxyConfigurationString()
      • getProxyInfoString

        public String getProxyInfoString()
      • stop

        public boolean stop​(long timeout)
      • stopContext

        public boolean stopContext​(String host,
                                   String path,
                                   long timeout)
      • setConnectorAddress

        public void setConnectorAddress​(String connectorAddress)
      • setConnectorPort

        public void setConnectorPort​(int connectorPort)
      • setExternalConnectorAddress

        public void setExternalConnectorAddress​(String externalConnectorAddress)
      • setExternalConnectorPort

        public void setExternalConnectorPort​(int externalConnectorPort)
      • getAdvertiseGroupAddress

        public String getAdvertiseGroupAddress()
      • setAdvertiseGroupAddress

        public void setAdvertiseGroupAddress​(String advertiseGroupAddress)
      • getAdvertisePort

        public int getAdvertisePort()
      • setAdvertisePort

        public void setAdvertisePort​(int advertisePort)
      • setAdvertiseInterface

        public void setAdvertiseInterface​(String advertiseInterface)
      • setAdvertiseInterfaceName

        public void setAdvertiseInterfaceName​(String advertiseInterfaceName)
      • setProxyList

        public void setProxyList​(String addresses)
      • getProxyList

        public String getProxyList()
      • setExcludedContexts

        public void setExcludedContexts​(String contexts)
      • getExcludedContexts

        public String getExcludedContexts()
      • setSessionDrainingStrategy

        public void setSessionDrainingStrategy​(String sessionDrainingStrategy)