public final class InteractiveEnterprisePluginClient extends java.lang.Object implements InteractiveEnterprisePlugin
| Modifier and Type | Field and Description |
|---|---|
protected EnterpriseClient |
enterpriseClient |
protected PluginLogger |
logger |
| Constructor and Description |
|---|
InteractiveEnterprisePluginClient(EnterpriseClient enterpriseClient,
PluginIO pluginIO) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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 configuredPackageId,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
java.io.File file)
Create and start a simulation with given parameters
|
protected long |
uploadPackageWithChecksum(java.util.UUID packageId,
java.io.File file) |
protected final EnterpriseClient enterpriseClient
protected final PluginLogger logger
public InteractiveEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginIO pluginIO)
public 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 configuredPackageId, java.util.Map<java.lang.String,java.lang.String> systemProperties, java.io.File file) throws EnterprisePluginException, EmptyChoicesException
InteractiveEnterprisePlugincreateOrStartSimulation in interface InteractiveEnterprisePluginteamId - 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, requiredconfiguredPackageId - 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 creationEnterprisePluginExceptionEmptyChoicesExceptionprotected long uploadPackageWithChecksum(java.util.UUID packageId,
java.io.File file)
throws EnterprisePluginException
EnterprisePluginExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception