Class ApplicationConfigProperties


  • public class ApplicationConfigProperties
    extends Object
    Configuration of common properties that are valid for an application (and not only a specific server).
    • Constructor Detail

      • ApplicationConfigProperties

        public ApplicationConfigProperties()
    • Method Detail

      • getStartupTimeout

        public final int getStartupTimeout()
        Gets the maximum time to wait for the server to start up.
        Returns:
        The number of seconds to wait.
      • setStartupTimeout

        public final void setStartupTimeout​(int seconds)
        Sets the maximum time to wait for the server to start up.

        The default value of this property is 20 (seconds).

        Parameters:
        seconds - The maximum number of seconds to wait.
        Throws:
        IllegalArgumentException - if seconds < 1.
      • getMaxInstances

        public final int getMaxInstances()
        Gets the number of verticle instances to deploy.

        The number is calculated as follows:

        1. if 0 < maxInstances < #processors, then return maxInstances
        2. else return Runtime.getRuntime().availableProcessors()
        Returns:
        the number of verticles to deploy.
      • setMaxInstances

        public final void setMaxInstances​(int maxVerticleInstances)
        Sets the number of verticle instances to deploy.

        The default value of this property is 0.

        Parameters:
        maxVerticleInstances - The number of verticles to deploy.
        Throws:
        IllegalArgumentException - if the number is < 0.