public class IlrLocalSSPService extends java.lang.Object implements IlrSSPService
IlrLocalSSPService is a fully local (J2SE) implementation of
the SSP Service.
Use this class to execute scenario suites in a J2SE environment.| Constructor and Description |
|---|
IlrLocalSSPService()
Creates a new instance.
|
IlrLocalSSPService(int maxNumberOfSimulationErrorsBeforeAborting)
Creates a new instance, with a default resource manager allocation policy manager (all threads
have the same execution priority of NORMAL, the maximum number of threads allocated for a
parallel simulation equals the number of parts for the parallel simulation), and a default thread
pool size of 10.
|
IlrLocalSSPService(int poolSize,
IlrSSPResourceAllocationPolicyManager resourcesAllocationPolicyManager,
int maxNumberOfSimulationErrorsBeforeAborting)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the SSP async system and releases all referenced resources.
|
java.lang.String |
createJob(IlrScenarioSuiteDescriptor suiteDescriptor)
Creates a new async job for a specific suite descriptor, then launches
it as a background task.
|
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 IlrLocalSSPService()
public IlrLocalSSPService(int maxNumberOfSimulationErrorsBeforeAborting)
maxNumberOfSimulationErrorsBeforeAborting - The maximum number of simulation errors
allowed before aborting the execution of a simulation.public IlrLocalSSPService(int poolSize,
IlrSSPResourceAllocationPolicyManager resourcesAllocationPolicyManager,
int maxNumberOfSimulationErrorsBeforeAborting)
poolSize - The size of the thread pool to use for running scenario suites.maxNumberOfSimulationErrorsBeforeAborting - The maximum number of simulation errors
allowed before aborting the execution of a simulation.resourcesAllocationPolicyManager - The resource allocation policy manager to use
for this SSP instance.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 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.public void close()
IlrSSPAsyncOperationsclose in interface IlrSSPAsyncOperations© Copyright IBM Corp. 1987, 2017