public class IlrSSPClient extends java.lang.Object implements IlrSSPService
| Constructor and Description |
|---|
IlrSSPClient(com.ibm.odm.httpclient.OdmHttpClientFactory clientFactory,
java.net.URL sspURL,
boolean formAuth)
Creates a remote HTTP client for the SSP.
|
IlrSSPClient(java.net.URL sspURL)
Creates a remote HTTP client for the SSP.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to this client.
|
java.lang.String |
createJob(IlrScenarioSuiteDescriptor suiteDescriptor)
Creates a new async job for a specific suite descriptor, then launches
it as a background task.
|
boolean |
doAuthenticate(java.lang.String user,
java.lang.String password)
Authenticates a user.
|
IlrDWTrace |
getExecutionTrace(java.lang.String executionId)
Returns the decision warehouse trace for a specific execution ID.
|
java.util.Set<IlrDWTrace> |
getExecutionTraces(java.util.Set<java.lang.String> executionIds)
Returns the set of execution traces for a set of execution IDs.
|
IlrExtensionsDescription |
getExtensionsDescription()
Returns the description of all installed extensions.
|
IlrSSPJobDescription |
getJob(java.lang.String jobId)
Returns the job description that matches a job ID.
|
IlrSSPJobResult |
getJobResult(java.lang.String jobId)
Returns the result for a specific job.
|
java.util.Set<IlrSSPJobDescription> |
getJobs()
Returns the set of job descriptions in the SSP.
|
void |
killJob(java.lang.String jobId)
Sends the kill signal to a job.
|
IlrScenarioSuiteTestResult |
run(IlrScenarioSuiteDescriptor suiteDescriptor)
Runs the scenario suite for a descriptor and returns the result.
|
public IlrSSPClient(java.net.URL sspURL)
throws com.ibm.odm.httpclient.OdmHttpClientFactoryException
com.ibm.odm.httpclient.OdmHttpClientFactoryExceptionsspURL - The URL for SSP web application access. For example,
http://localhost:9080/ssp. This parameter cannot be null.public IlrSSPClient(com.ibm.odm.httpclient.OdmHttpClientFactory clientFactory,
java.net.URL sspURL,
boolean formAuth)
throws com.ibm.odm.httpclient.OdmHttpClientFactoryException
com.ibm.odm.httpclient.OdmHttpClientFactoryExceptionclientFactory - The HTTP client factory.sspURL - The URL for SSP web application access. For example,
http://localhost:9080/ssp. This parameter cannot be null.public IlrScenarioSuiteTestResult run(IlrScenarioSuiteDescriptor suiteDescriptor) throws IlrTestingException
IlrSSPServicerun in interface IlrSSPServiceIlrTestingException - if an exception occurs running the scenario
suite.suiteDescriptor - The scenario suite descriptor.public IlrDWTrace getExecutionTrace(java.lang.String executionId) throws IlrDecisionWarehouseException
IlrSSPServicegetExecutionTrace in interface IlrSSPServiceIlrDecisionWarehouseException - if an error occurs trying to
retrieve the decision warehouse trace.executionId - The execution ID.executionId, null is returned.public java.util.Set<IlrDWTrace> getExecutionTraces(java.util.Set<java.lang.String> executionIds) throws IlrDecisionWarehouseException
IlrSSPServicegetExecutionTraces in interface IlrSSPServiceIlrDecisionWarehouseException - if an error occurs trying to
retrieve the decision warehouse traces.executionIds - The IDs to retrieve the decision warehouse traces
for.executionIds.public IlrExtensionsDescription getExtensionsDescription() throws IlrTestingException
IlrSSPServicegetExtensionsDescription in interface IlrSSPServiceIlrTestingException - if an error occurred trying to retrieve the
installed extensions.public boolean doAuthenticate(java.lang.String user,
java.lang.String password)
throws ilog.rules.res.util.http.IlrAuthenticationException,
ilog.rules.res.util.http.IlrConnectionException
ilog.rules.res.util.http.IlrConnectionException - if the connection failed. Some possible causes are:
ilog.rules.res.util.http.IlrAuthenticationException - if there is an anthentication problem.user - The user name for SSP authentication. This parameter can be
null.password - The password for SSP authentication. This parameter can be
null.false is
returned.public void close()
close in interface IlrSSPAsyncOperationspublic java.util.Set<IlrSSPJobDescription> getJobs() throws IlrRunnerException
IlrSSPAsyncOperationsgetJobs in interface IlrSSPAsyncOperationsIlrRunnerException - if an error occurs listing job descriptions.public java.lang.String createJob(IlrScenarioSuiteDescriptor suiteDescriptor) throws IlrRunnerException
IlrSSPAsyncOperationscreateJob in interface IlrSSPAsyncOperationsIlrRunnerException - if an error occurs creating the job.suiteDescriptor - The suite descriptor for the job.public IlrSSPJobResult getJobResult(java.lang.String jobId) throws IlrRunnerException
IlrSSPAsyncOperationsgetJobResult in interface IlrSSPAsyncOperationsIlrRunnerException - if an error occurs retrieving the
job result, or if the job has not yet completed.jobId - The ID of the job. This is the value returned by calling
createJob().jobId,
null is returned.public void killJob(java.lang.String jobId)
throws IlrRunnerException
IlrSSPAsyncOperationskillJob in interface IlrSSPAsyncOperationsIlrRunnerException - if an internal error occurs while marking
the job as killed.jobId - The ID of the job to kill.public IlrSSPJobDescription getJob(java.lang.String jobId) throws IlrRunnerException
IlrSSPAsyncOperationsgetJob in interface IlrSSPAsyncOperationsIlrRunnerException - if an error occurs retrieving the
job description.jobId - The job ID.jobId,
null is returned.© Copyright IBM Corp. 1987, 2017