public class SmartExecutorClientImpl extends Object implements SmartExecutorClient
| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected String |
host |
static String |
PATH_SEPARATOR |
protected String |
pluginName |
| Constructor and Description |
|---|
SmartExecutorClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String executionIdentifier) |
boolean |
delete(String executionIdentifier,
boolean unschedule) |
boolean |
delete(UUID executionIdentifier) |
boolean |
delete(UUID executionIdentifier,
boolean unschedule) |
String |
getAddress() |
String |
getAvailablePlugins() |
String |
getHost() |
static String |
getHostFromCompleteURL(String address) |
String |
getLaunches() |
String |
getOrphanLaunches() |
List<org.gcube.vremanagement.executor.plugin.ScheduledTask> |
getOrphanScheduledLaunches() |
String |
getPluginName() |
List<org.gcube.vremanagement.executor.plugin.PluginDeclaration> |
getPlugins() |
String |
getPluginStateEvolution(String executionIdentifier) |
String |
getPluginStateEvolution(String executionIdentifier,
int iterationNumber) |
org.gcube.vremanagement.executor.plugin.PluginStateEvolution |
getPluginStateEvolution(UUID executionIdentifier) |
org.gcube.vremanagement.executor.plugin.PluginStateEvolution |
getPluginStateEvolution(UUID executionIdentifier,
int iterationNumber) |
List<org.gcube.vremanagement.executor.plugin.ScheduledTask> |
getScheduledLaunches() |
protected static StringBuilder |
getStringBuilder(InputStream inputStream) |
UUID |
launch(org.gcube.vremanagement.executor.api.types.LaunchParameter launchParameter) |
String |
launch(String launchParameter) |
protected String |
parseHttpURLConnection(HttpURLConnection connection) |
void |
setAddress(String address) |
void |
setPluginName(String pluginName) |
public static final String PATH_SEPARATOR
protected String pluginName
protected String host
protected String address
public String getHost()
getHost in interface SmartExecutorClientpublic String getAddress()
public void setAddress(String address)
public String getPluginName()
public void setPluginName(String pluginName)
protected static StringBuilder getStringBuilder(InputStream inputStream) throws IOException
IOExceptionprotected String parseHttpURLConnection(HttpURLConnection connection) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionpublic String getAvailablePlugins()
getAvailablePlugins in interface SmartExecutorClientpublic List<org.gcube.vremanagement.executor.plugin.PluginDeclaration> getPlugins() throws IOException
getPlugins in interface SmartExecutorClientIOExceptionpublic String getOrphanLaunches()
getOrphanLaunches in interface SmartExecutorClientpublic List<org.gcube.vremanagement.executor.plugin.ScheduledTask> getOrphanScheduledLaunches() throws IOException
getOrphanScheduledLaunches in interface SmartExecutorClientIOExceptionpublic String getLaunches()
getLaunches in interface SmartExecutorClientpublic List<org.gcube.vremanagement.executor.plugin.ScheduledTask> getScheduledLaunches() throws IOException
getScheduledLaunches in interface SmartExecutorClientIOExceptionpublic String launch(String launchParameter)
launch in interface SmartExecutorClientpublic UUID launch(org.gcube.vremanagement.executor.api.types.LaunchParameter launchParameter)
launch in interface SmartExecutorClientpublic String getPluginStateEvolution(String executionIdentifier)
getPluginStateEvolution in interface SmartExecutorClientpublic String getPluginStateEvolution(String executionIdentifier, int iterationNumber)
getPluginStateEvolution in interface SmartExecutorClientpublic org.gcube.vremanagement.executor.plugin.PluginStateEvolution getPluginStateEvolution(UUID executionIdentifier)
getPluginStateEvolution in interface SmartExecutorClientpublic org.gcube.vremanagement.executor.plugin.PluginStateEvolution getPluginStateEvolution(UUID executionIdentifier, int iterationNumber)
getPluginStateEvolution in interface SmartExecutorClientpublic boolean delete(String executionIdentifier)
delete in interface SmartExecutorClientpublic boolean delete(String executionIdentifier, boolean unschedule)
delete in interface SmartExecutorClientpublic boolean delete(UUID executionIdentifier)
delete in interface SmartExecutorClientpublic boolean delete(UUID executionIdentifier, boolean unschedule)
delete in interface SmartExecutorClientCopyright © 2019. All Rights Reserved.