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 TransformServiceLauncherforProject(@Nullable String projectName, int port, @Nullable String pythonRequirementsFile) Initializes a client for managing transform service instances.static voidvoidsetBeamVersion(String beamVersion) Specifies the Beam version to get containers for the transform service.voidshutdown()voidstart()voidstatus()voidwaitTillUp(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:
IOExceptionTimeoutException
-
shutdown
- Throws:
IOException
-
status
- Throws:
IOException
-
waitTillUp
- Throws:
IOExceptionTimeoutException
-
main
- Throws:
IOExceptionTimeoutException
-