Class TransformServiceLauncher
java.lang.Object
org.apache.beam.sdk.transformservice.launcher.TransformServiceLauncher
A utility that can be used to manage a Beam Transform Service.
Can be either used programatically or as an executable jar.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransformServiceLauncher
forProject
(@Nullable String projectName, int port, @Nullable String pythonRequirementsFile) Initializes a client for managing transform service instances.static void
void
setBeamVersion
(String beamVersion) Specifies the Beam version to get containers for the transform service.void
shutdown()
void
start()
void
status()
void
waitTillUp
(int timeout)
-
Method Details
-
setBeamVersion
Specifies the Beam version to get containers for the transform service.Could be a release Beam version with containers in Docker Hub or an unreleased Beam version for which containers are available locally.
- Parameters:
beamVersion
- a Beam version to get containers from.
-
forProject
public static TransformServiceLauncher forProject(@Nullable String projectName, int port, @Nullable String pythonRequirementsFile) throws IOException Initializes a client for managing transform service instances.- Parameters:
projectName
- project name for the transform service.port
- port exposed by the transform service.pythonRequirementsFile
- a requirements file with extra dependencies for the Python expansion services.- Returns:
- an initialized client for managing the transform service.
- Throws:
IOException
-
start
- Throws:
IOException
TimeoutException
-
shutdown
- Throws:
IOException
-
status
- Throws:
IOException
-
waitTillUp
- Throws:
IOException
TimeoutException
-
main
- Throws:
IOException
TimeoutException
-