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.IOException
public void start() throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public void shutdown() throws java.io.IOException
java.io.IOException
public void status() throws java.io.IOException
java.io.IOException
public void waitTillUp(int timeout) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException
public static void main(java.lang.String[] args) throws java.io.IOException, java.util.concurrent.TimeoutException
java.io.IOException
java.util.concurrent.TimeoutException