Class SmartExecutorClientImpl
- java.lang.Object
-
- org.gcube.vremanagement.executor.client.SmartExecutorClientImpl
-
- All Implemented Interfaces:
SmartExecutorClient
public class SmartExecutorClientImpl extends Object implements SmartExecutorClient
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringaddressprotected Stringhoststatic StringPATH_SEPARATORprotected StringpluginName
-
Constructor Summary
Constructors Constructor Description SmartExecutorClientImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(String executionIdentifier)booleandelete(String executionIdentifier, boolean unschedule)booleandelete(UUID executionIdentifier)booleandelete(UUID executionIdentifier, boolean unschedule)StringgetAddress()StringgetAvailablePlugins()StringgetHost()static StringgetHostFromCompleteURL(String address)StringgetLaunches()StringgetOrphanLaunches()List<org.gcube.vremanagement.executor.plugin.ScheduledTask>getOrphanScheduledLaunches()StringgetPluginName()List<org.gcube.vremanagement.executor.plugin.PluginDefinition>getPlugins()StringgetPluginStateEvolution(String executionIdentifier)StringgetPluginStateEvolution(String executionIdentifier, int iterationNumber)org.gcube.vremanagement.executor.plugin.PluginStateEvolutiongetPluginStateEvolution(UUID executionIdentifier)org.gcube.vremanagement.executor.plugin.PluginStateEvolutiongetPluginStateEvolution(UUID executionIdentifier, int iterationNumber)List<org.gcube.vremanagement.executor.plugin.ScheduledTask>getScheduledLaunches()protected static StringBuildergetStringBuilder(InputStream inputStream)Stringlaunch(String launchParameter)UUIDlaunch(org.gcube.vremanagement.executor.api.types.LaunchParameter launchParameter)protected StringparseHttpURLConnection(HttpURLConnection connection)voidsetAddress(String address)voidsetPluginName(String pluginName)
-
-
-
Field Detail
-
PATH_SEPARATOR
public static final String PATH_SEPARATOR
- See Also:
- Constant Field Values
-
pluginName
protected String pluginName
-
host
protected String host
-
address
protected String address
-
-
Method Detail
-
getHost
public String getHost()
- Specified by:
getHostin interfaceSmartExecutorClient
-
getAddress
public String getAddress()
-
setAddress
public void setAddress(String address)
-
getPluginName
public String getPluginName()
-
setPluginName
public void setPluginName(String pluginName)
-
getStringBuilder
protected static StringBuilder getStringBuilder(InputStream inputStream) throws IOException
- Throws:
IOException
-
parseHttpURLConnection
protected String parseHttpURLConnection(HttpURLConnection connection) throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
-
getAvailablePlugins
public String getAvailablePlugins()
- Specified by:
getAvailablePluginsin interfaceSmartExecutorClient
-
getPlugins
public List<org.gcube.vremanagement.executor.plugin.PluginDefinition> getPlugins() throws IOException
- Specified by:
getPluginsin interfaceSmartExecutorClient- Throws:
IOException
-
getOrphanLaunches
public String getOrphanLaunches()
- Specified by:
getOrphanLaunchesin interfaceSmartExecutorClient
-
getOrphanScheduledLaunches
public List<org.gcube.vremanagement.executor.plugin.ScheduledTask> getOrphanScheduledLaunches() throws IOException
- Specified by:
getOrphanScheduledLaunchesin interfaceSmartExecutorClient- Throws:
IOException
-
getLaunches
public String getLaunches()
- Specified by:
getLaunchesin interfaceSmartExecutorClient
-
getScheduledLaunches
public List<org.gcube.vremanagement.executor.plugin.ScheduledTask> getScheduledLaunches() throws IOException
- Specified by:
getScheduledLaunchesin interfaceSmartExecutorClient- Throws:
IOException
-
launch
public String launch(String launchParameter)
- Specified by:
launchin interfaceSmartExecutorClient
-
launch
public UUID launch(org.gcube.vremanagement.executor.api.types.LaunchParameter launchParameter)
- Specified by:
launchin interfaceSmartExecutorClient
-
getPluginStateEvolution
public String getPluginStateEvolution(String executionIdentifier)
- Specified by:
getPluginStateEvolutionin interfaceSmartExecutorClient
-
getPluginStateEvolution
public String getPluginStateEvolution(String executionIdentifier, int iterationNumber)
- Specified by:
getPluginStateEvolutionin interfaceSmartExecutorClient
-
getPluginStateEvolution
public org.gcube.vremanagement.executor.plugin.PluginStateEvolution getPluginStateEvolution(UUID executionIdentifier)
- Specified by:
getPluginStateEvolutionin interfaceSmartExecutorClient
-
getPluginStateEvolution
public org.gcube.vremanagement.executor.plugin.PluginStateEvolution getPluginStateEvolution(UUID executionIdentifier, int iterationNumber)
- Specified by:
getPluginStateEvolutionin interfaceSmartExecutorClient
-
delete
public boolean delete(String executionIdentifier)
- Specified by:
deletein interfaceSmartExecutorClient
-
delete
public boolean delete(String executionIdentifier, boolean unschedule)
- Specified by:
deletein interfaceSmartExecutorClient
-
delete
public boolean delete(UUID executionIdentifier)
- Specified by:
deletein interfaceSmartExecutorClient
-
delete
public boolean delete(UUID executionIdentifier, boolean unschedule)
- Specified by:
deletein interfaceSmartExecutorClient
-
-