Package io.deephaven.server.runner
Class MainHelper
java.lang.Object
io.deephaven.server.runner.MainHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static @NotNull Configuration
Common init method to share between main() implementations.parseOutboundSSLConfig
(Configuration config) Parser the same properties asparseSSLConfig(Configuration)
, except with property keys prefixed with "outbound.".parseSSLConfig
(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 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
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
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
-