public class JobClientFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BLUEMIX_SERVICE_LABEL
This is the text ("docplexcloud") that is used to search for a definition of
the service in Bluemix when no name is provided.
|
| Constructor and Description |
|---|
JobClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JobClient |
createDefault(String baseURL,
String clientid)
Creates a default job client to connect to the given base URL using the
given client ID.
|
static JobClient |
createDefault(String baseURL,
String clientid,
String secret)
Creates a default job client to connect to the given base URL using the
given client ID and client secret.
|
static JobClient |
createDefaultFromBluemix()
Creates a default job client to connect to the IBM Decision Optimization service by looking up the
service with the label starting with
BLUEMIX_SERVICE_LABEL in the VCAP_SERVICES. |
static JobClient |
createDefaultFromBluemix(String serviceName)
Creates a default job client to connect to the IBM Decision Optimization service by looking up the
service name in the VCAP_SERVICES.
|
static JobClientBuilder |
custom(String baseURL,
String clientid)
Returns a builder to configure the job client.
|
static JobClientBuilder |
custom(String baseURL,
String clientid,
String secret)
Returns a builder to configure the job client.
|
static JobClientBuilder |
customFromBluemix()
Returns a builder to configure the job client by looking for an IBM Decision Optimization
service with the label starting with
BLUEMIX_SERVICE_LABEL in the VCAP_SERVICES. |
static JobClientBuilder |
customFromBluemix(String serviceName)
Returns a builder to configure the job client.
|
public static final String BLUEMIX_SERVICE_LABEL
public static JobClient createDefault(String baseURL, String clientid)
baseURL - The base URL.clientid - The client ID of the API key.public static JobClientBuilder custom(String baseURL, String clientid)
baseURL - The base URL.clientid - The client ID of the API key.public static JobClientBuilder custom(String baseURL, String clientid, String secret)
baseURL - The base URL.clientid - The client ID of the API key.secret - The client secret of the API key.public static JobClient createDefault(String baseURL, String clientid, String secret)
baseURL - The server URL.clientid - The client ID of the API key.secret - The client secret of the API key.public static JobClient createDefaultFromBluemix() throws OaasException
BLUEMIX_SERVICE_LABEL in the VCAP_SERVICES.
The default job client uses the default HTTP client.OaasException - if the service credentials can not be found.createDefaultFromBluemix(String)public static JobClient createDefaultFromBluemix(String serviceName) throws OaasException
serviceName - The name of the IBM Decision Optimization service to be used.OaasException - if the service credentials can not be found.
The service name is the name that was given to the service and bound to the Bluemix application.
public static JobClientBuilder customFromBluemix(String serviceName) throws OaasException
serviceName - The name of the IBM Decision Optimization service to be used.OaasException - if the service credentials can not be found.
The service name is the name that was given to the service and bound to the Bluemix application.
public static JobClientBuilder customFromBluemix() throws OaasException
BLUEMIX_SERVICE_LABEL in the VCAP_SERVICES.OaasException - if the service credentials can not be found.customFromBluemix(String)Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.