public class ServerConfig extends Object
| Constructor and Description |
|---|
ServerConfig() |
| Modifier and Type | Method and Description |
|---|---|
io.airlift.units.Duration |
getGracePeriod() |
@NotNull(message="presto.version must be provided when it cannot be automatically determined") String |
getPrestoVersion() |
boolean |
isCoordinator() |
boolean |
isEnhancedErrorReporting() |
boolean |
isIncludeExceptionInResponse() |
ServerConfig |
setCoordinator(boolean coordinator) |
ServerConfig |
setEnhancedErrorReporting(boolean value) |
ServerConfig |
setGracePeriod(io.airlift.units.Duration gracePeriod) |
ServerConfig |
setIncludeExceptionInResponse(boolean includeExceptionInResponse) |
ServerConfig |
setPrestoVersion(String prestoVersion) |
public boolean isCoordinator()
@Config(value="coordinator") public ServerConfig setCoordinator(boolean coordinator)
@NotNull(message="presto.version must be provided when it cannot be automatically determined") public @NotNull(message="presto.version must be provided when it cannot be automatically determined") String getPrestoVersion()
@Config(value="presto.version") public ServerConfig setPrestoVersion(String prestoVersion)
public boolean isIncludeExceptionInResponse()
@Config(value="http.include-exception-in-response") public ServerConfig setIncludeExceptionInResponse(boolean includeExceptionInResponse)
public io.airlift.units.Duration getGracePeriod()
@Config(value="shutdown.grace-period") public ServerConfig setGracePeriod(io.airlift.units.Duration gracePeriod)
public boolean isEnhancedErrorReporting()
@Config(value="sql.parser.enhanced-error-reporting") public ServerConfig setEnhancedErrorReporting(boolean value)
Copyright © 2012–2019. All rights reserved.