Package co.decodable.sdk.pipeline
Class EnvironmentAccess
java.lang.Object
co.decodable.sdk.pipeline.EnvironmentAccess
Provides access to the environment from within a custom Flink job. By default, the system
environment is exposed. For testing purposes, a custom environment can be set.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Exposes the environment variables of the current process. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current environment.static void
Resets active the environment to the system environment.static void
setEnvironment
(EnvironmentAccess.Environment environment) Sets the given environment as the active one.
-
Method Details
-
setEnvironment
Sets the given environment as the active one. -
resetEnvironment
public static void resetEnvironment()Resets active the environment to the system environment. -
getEnvironment
Returns the current environment.
-