public interface Launch
This interface is not intended to be implemented by clients.
LaunchManager.getLaunch(String)
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Requests to cancel the launch execution.
|
List<Argument> |
getArguments()
Returns the launch arguments.
|
long |
getEndTime()
Returns the time at which the service execution terminated.
|
String |
getId()
Returns the unique launch identifier.
|
List<LogEntry> |
getLogEntries()
Returns the messages logged during the service execution.
|
int |
getRequestNumber()
Returns the number associated with this launch.
|
long |
getRequestTime()
Returns the time at which the service execution was requested.
|
LaunchResult |
getResult()
Returns the result of the service execution, which notably describes the generated files.
|
String |
getServiceId()
Returns the identifier of the executed service.
|
long |
getStartTime()
Returns the time at which the service execution started.
|
LaunchState |
getState()
Returns the execution state of this launch.
|
PropertySet |
getStatusProperties()
Returns the properties associated with the launch status, as given by the service developer.
|
String getId()
LaunchManager.getLaunch(String)
String getServiceId()
ServicesManager.getService(String)
LaunchState getState()
List<Argument> getArguments()
PropertySet getStatusProperties()
When the service execution is performed from a custom integration, it might be useful that the service sends some custom information back to the integration while the launch is executed. Sending from an execution custom information to the requestor of a launch can be achieved using the following code:
PropertySet launchStatus = (PropertySet) ScriptContainer.context.getProperty(LaunchManager.OPTION_STATUS); launchStatus.setProperty("myProperty", "myPropertyValue");
This custom status information is serialized within the launch REST service response, so that an integration can provide additional feedback to the end-user about the current state of the execution.
List<LogEntry> getLogEntries()
LaunchResult getResult()
long getRequestTime()
int getRequestNumber()
Each time a new launch is requested, a global counter is incremented and a number is associated to the created launch.
This number is intended to facilitate the visual identification of a launch by an administrator. It is not guaranteed to be unique for the lifetime of the web application. It is not meant to be used for any programmatic identification nor to be used in web services.
long getStartTime()
long getEndTime()
void cancel()