public interface BuildService
| Modifier and Type | Method and Description |
|---|---|
void |
allowInsecureHosts() |
Build |
createBuild(java.lang.String buildName,
com.google.gson.JsonObject buildConfig)
Submit an archive to build using the IBM Streams build service.
|
java.util.List<BaseImage> |
getBaseImages()
Gets a list of
baseImages for EDGE applications available in the build service. |
Toolkit |
getToolkit(java.lang.String toolkitId)
Gets a
toolkit installed on the IBM Streams build
service. |
java.util.List<Toolkit> |
getToolkits()
Gets a list of
toolkits installed on the IBM Streams
build service. |
static BuildService |
ofEndpoint(java.lang.String endpoint,
java.lang.String name,
java.lang.String userName,
java.lang.String password,
boolean verify) |
static BuildService |
ofServiceDefinition(com.google.gson.JsonObject serviceDefinition,
boolean verify) |
Toolkit |
uploadToolkit(java.io.File path)
Install a toolkit in the build service from a local path.
|
static BuildService ofEndpoint(java.lang.String endpoint, java.lang.String name, java.lang.String userName, java.lang.String password, boolean verify) throws java.io.IOException
java.io.IOExceptionstatic BuildService ofServiceDefinition(com.google.gson.JsonObject serviceDefinition, boolean verify) throws java.io.IOException
java.io.IOExceptionvoid allowInsecureHosts()
Build createBuild(java.lang.String buildName, com.google.gson.JsonObject buildConfig) throws java.io.IOException
The returned Result instance has:
Result.getId() returning the job identifier or null if a
job was not created..Result.getElement() returning a Job instance for the
submitted job or null if a job was not created.Result.getRawResult() return the raw JSON response.archive - The application archive to build.buildName - A name for the build, or null.buildConfig - Build configuration, or null.java.io.IOException - Error communicating with the service.java.util.List<Toolkit> getToolkits() throws java.io.IOException
toolkits installed on the IBM Streams
build service.java.io.IOExceptionToolkit getToolkit(java.lang.String toolkitId) throws java.io.IOException
toolkit installed on the IBM Streams build
service.toolkitId - The ID of the toolkit to retrieve.java.io.IOExceptionToolkit uploadToolkit(java.io.File path) throws java.io.IOException
Toolkit object representing the newly installed toolkit,
or null if the toolkit was not installed.java.io.IOExceptionjava.util.List<BaseImage> getBaseImages() throws java.io.IOException
baseImages for EDGE applications available in the build service.java.io.IOException