Class TransformServiceLauncher
- java.lang.Object
-
- org.apache.beam.sdk.transformservice.launcher.TransformServiceLauncher
-
public class TransformServiceLauncher extends java.lang.ObjectA utility that can be used to manage a Beam Transform Service.Can be either used programatically or as an executable jar.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransformServiceLauncherforProject(@Nullable java.lang.String projectName, int port, @Nullable java.lang.String pythonRequirementsFile)Initializes a client for managing transform service instances.static voidmain(java.lang.String[] args)voidsetBeamVersion(java.lang.String beamVersion)Specifies the Beam version to get containers for the transform service.voidshutdown()voidstart()voidstatus()voidwaitTillUp(int timeout)
-
-
-
Method Detail
-
setBeamVersion
public void setBeamVersion(java.lang.String beamVersion)
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 java.lang.String projectName, int port, @Nullable java.lang.String pythonRequirementsFile) throws java.io.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:
java.io.IOException
-
start
public void start() throws java.io.IOException, java.util.concurrent.TimeoutException- Throws:
java.io.IOExceptionjava.util.concurrent.TimeoutException
-
shutdown
public void shutdown() throws java.io.IOException- Throws:
java.io.IOException
-
status
public void status() throws java.io.IOException- Throws:
java.io.IOException
-
waitTillUp
public void waitTillUp(int timeout) throws java.io.IOException, java.util.concurrent.TimeoutException- Throws:
java.io.IOExceptionjava.util.concurrent.TimeoutException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.util.concurrent.TimeoutException- Throws:
java.io.IOExceptionjava.util.concurrent.TimeoutException
-
-