All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.digital.integration.server.common.domain.Server.kt Maven / Gradle / Ivy

There is a newer version: 23.3.0-1025.941
Show newest version
package ai.digital.integration.server.common.domain

import ai.digital.integration.server.common.constant.ServerConstants
import ai.digital.integration.server.common.domain.api.Container
import ai.digital.integration.server.common.util.HTTPUtil
import groovy.lang.Closure
import org.gradle.api.NamedDomainObjectContainer
import java.io.File

open class Server(name: String) : Container(name) {
    var akkaSecured: Boolean = false
    var contextRoot: String = "/"
    var copyBuildArtifacts = mutableMapOf()
    var copyFolders = mutableMapOf>()
    var defaultOfficialPluginsToExclude: List = mutableListOf()
    var devOpsAsCodes: NamedDomainObjectContainer? = null
    var dockerImage: String? = null
    var centralConfigDockerImage: String? = null
    var httpPort: Int = HTTPUtil.findFreePort()
    var generateDatasets: List = mutableListOf()
    var pingRetrySleepTime: Int = ServerConstants.DEFAULT_PING_RETRY_SLEEP_TIME
    var pingTotalTries: Int = ServerConstants.DEFAULT_PING_TOTAL_TRIES
    var previousInstallation: Boolean = false
    var tls: Boolean = false
    var yamlPatches: Map> = mutableMapOf()

    fun devOpsAsCodes(closure: Closure>) {
        devOpsAsCodes?.configure(closure)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy