public class TransformServiceLauncher
extends java.lang.Object
Can be either used programatically or as an executable jar.
| Modifier and Type | Method and Description |
|---|---|
static TransformServiceLauncher |
forProject(@Nullable java.lang.String projectName,
int port,
@Nullable java.lang.String pythonRequirementsFile)
Initializes a client for managing transform service instances.
|
static void |
main(java.lang.String[] args) |
void |
setBeamVersion(java.lang.String beamVersion)
Specifies the Beam version to get containers for the transform service.
|
void |
shutdown() |
void |
start() |
void |
status() |
void |
waitTillUp(int timeout) |
public void setBeamVersion(java.lang.String beamVersion)
Could be a release Beam version with containers in Docker Hub or an unreleased Beam version for which containers are available locally.
beamVersion - a Beam version to get containers from.public static TransformServiceLauncher forProject(@Nullable java.lang.String projectName, int port, @Nullable java.lang.String pythonRequirementsFile) throws java.io.IOException
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.java.io.IOExceptionpublic void start()
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionpublic void shutdown()
throws java.io.IOException
java.io.IOExceptionpublic void status()
throws java.io.IOException
java.io.IOExceptionpublic void waitTillUp(int timeout)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutException