public interface InteractiveEnterprisePlugin
extends java.lang.AutoCloseable
All methods can throw an EmptyChoicesException if the API returns an empty set of
available choices.
The following exception sub-classes of EnterprisePluginException can be thrown by all
methods of this client:
UnauthorizedApiCallException: invalid authentication token
ForbiddenApiCallException: authentication token with insufficient privileges
ApiCallIOException: unexpected IO error
InvalidApiCallException: invalid input data
UserQuitException: execution cancelled by the user
| Modifier and Type | Method and Description |
|---|---|
SimulationStartResult |
createOrStartSimulation(java.util.UUID teamId,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String simulationClass,
java.util.List<java.lang.String> discoveredSimulationClasses,
java.util.UUID packageId,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
java.io.File file)
Create and start a simulation with given parameters
|
SimulationStartResult createOrStartSimulation(java.util.UUID teamId, java.lang.String groupId, java.lang.String artifactId, java.lang.String simulationClass, java.util.List<java.lang.String> discoveredSimulationClasses, java.util.UUID packageId, java.util.Map<java.lang.String,java.lang.String> systemProperties, java.io.File file) throws EnterprisePluginException, EmptyChoicesException
teamId - Optional, if not null, will be automatically pickedgroupId - Optional, if not null, will prefix the proposed package nameartifactId - Optional, if not null, will suffix the proposed package namesimulationClass - Optional, if not null, will be automatically pickeddiscoveredSimulationClasses - Required, the list of potential simulation classes in the
project, requiredpackageId - Optional, if not null, will be automatically picked when creating a new
simulationsystemProperties - Required, can be an empty map; override conflicting system properties
when running the simulationfile - Required, path to the packaged JAR file to upload and runSimulationStartException - if simulation start failed after creationEnterprisePluginExceptionEmptyChoicesException