Class ServerRestartParameter


  • public final class ServerRestartParameter
    extends Object
    Server restart parameters.
    • Constructor Detail

      • ServerRestartParameter

        public ServerRestartParameter()
    • Method Detail

      • restartWithFailover

        public EnableStatusEnum restartWithFailover()
        Get the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
        Returns:
        the restartWithFailover value.
      • withRestartWithFailover

        public ServerRestartParameter withRestartWithFailover​(EnableStatusEnum restartWithFailover)
        Set the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
        Parameters:
        restartWithFailover - the restartWithFailover value to set.
        Returns:
        the ServerRestartParameter object itself.
      • maxFailoverSeconds

        public Integer maxFailoverSeconds()
        Get the maxFailoverSeconds property: The maximum allowed failover time in seconds.
        Returns:
        the maxFailoverSeconds value.
      • withMaxFailoverSeconds

        public ServerRestartParameter withMaxFailoverSeconds​(Integer maxFailoverSeconds)
        Set the maxFailoverSeconds property: The maximum allowed failover time in seconds.
        Parameters:
        maxFailoverSeconds - the maxFailoverSeconds value to set.
        Returns:
        the ServerRestartParameter object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.