Package io.deephaven.server.runner
Class MainHelper
java.lang.Object
io.deephaven.server.runner.MainHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic @NotNull io.deephaven.configuration.ConfigurationCommon init method to share between main() implementations.static Optional<io.deephaven.ssl.config.SSLConfig>parseOutboundSSLConfig(io.deephaven.configuration.Configuration config) Parser the same properties asparseSSLConfig(Configuration), except with property keys prefixed with "outbound.".static Optional<io.deephaven.ssl.config.SSLConfig>parseSSLConfig(io.deephaven.configuration.Configuration config) Parses the configuration properties "ssl.identity.type", "ssl.identity.certChainPath", "ssl.identity.privateKeyPath", "ssl.trust.type", "ssl.trust.path", and "ssl.clientAuthentication".
-
Field Details
-
SSL_IDENTITY_TYPE
- See Also:
-
SSL_IDENTITY_CERT_CHAIN_PATH
- See Also:
-
SSL_IDENTITY_PRIVATE_KEY_PATH
- See Also:
-
SSL_TRUST_TYPE
- See Also:
-
SSL_TRUST_PATH
- See Also:
-
SSL_CLIENT_AUTH
- See Also:
-
PRIVATEKEY
- See Also:
-
CERTS
- See Also:
-
DEEPHAVEN_APPLICATION_PROPERTY
- See Also:
-
DEEPHAVEN_APPLICATION_ENV
- See Also:
-
-
Constructor Details
-
MainHelper
public MainHelper()
-
-
Method Details
-
bootstrapProjectDirectories
- Throws:
IOException
-
init
@NotNull public static @NotNull io.deephaven.configuration.Configuration init(String[] args, Class<?> mainClass) throws IOException Common init method to share between main() implementations.- Parameters:
args- the argsmainClass- the main class- Returns:
- the current configuration instance to be used when configuring the rest of the server
- Throws:
IOException- if an I/O exception occurs
-
parseSSLConfig
public static Optional<io.deephaven.ssl.config.SSLConfig> parseSSLConfig(io.deephaven.configuration.Configuration config) Parses the configuration properties "ssl.identity.type", "ssl.identity.certChainPath", "ssl.identity.privateKeyPath", "ssl.trust.type", "ssl.trust.path", and "ssl.clientAuthentication". Currently, the only valid identity type is "privatekey", and the only valid trust type is "certs". If no identity is present, empty will be returned.- Parameters:
config- the config- Returns:
- the optional SSL config
-
parseOutboundSSLConfig
public static Optional<io.deephaven.ssl.config.SSLConfig> parseOutboundSSLConfig(io.deephaven.configuration.Configuration config) Parser the same properties asparseSSLConfig(Configuration), except with property keys prefixed with "outbound.". Identity configuration is not required.- Parameters:
config- the config- Returns:
- the optional outbound SSL config
-