public class SchedulerRestClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SchedulerRestClient.JacksonContextResolver |
Modifier and Type | Field and Description |
---|---|
static String |
FILE_KEY |
static String |
VARIABLES_KEY |
Constructor and Description |
---|
SchedulerRestClient(String restEndpointURL) |
SchedulerRestClient(String restEndpointURL,
org.jboss.resteasy.client.jaxrs.ClientHttpEngine httpEngine) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(String sessionId,
String dataspacePath,
String path,
List<String> includes,
List<String> excludes) |
boolean |
download(String sessionId,
String dataspacePath,
String path,
List<String> includes,
List<String> excludes,
File outputFile) |
boolean |
download(String sessionId,
String dataspacePath,
String path,
List<String> includes,
List<String> excludes,
String outputPath) |
String |
getRestEndpointURL() |
SchedulerRestInterface |
getScheduler() |
ListFile |
list(String sessionId,
String dataspacePath,
String pathname) |
Map<String,Object> |
metadata(String sessionId,
String dataspacePath,
String pathname) |
void |
pullFile(String sessionId,
String space,
String path,
String outputPath) |
boolean |
pushFile(String sessionId,
String space,
String path,
String fileName,
InputStream fileContent) |
static void |
registerGzipEncoding(org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory) |
JobIdData |
reSubmit(String sessionId,
String jobId,
Map<String,String> variables,
Map<String,String> genericInfos) |
JobIdData |
submitJobArchive(String sessionId,
InputStream jobArchive) |
JobIdData |
submitJobArchive(String sessionId,
InputStream jobArchive,
Map<String,String> variables,
Map<String,String> genericInfos) |
List<JobIdDataAndError> |
submitMultipleUrl(String sessionId,
List<WorkflowUrlData> workflowUrlDataList) |
JobIdData |
submitUrl(String sessionId,
String workflowUrl,
Map<String,String> variables,
Map<String,String> genericInfos) |
JobIdData |
submitXml(String sessionId,
InputStream jobXml) |
JobIdData |
submitXml(String sessionId,
InputStream jobXml,
Map<String,String> variables) |
JobIdData |
submitXml(String sessionId,
InputStream jobXml,
Map<String,String> variables,
Map<String,String> genericInfos) |
JobIdData |
submitXmlAs(String sessionId,
InputStream jobXml,
String user) |
void |
updateLogo(String sessionId,
InputStream fileContent) |
boolean |
upload(String sessionId,
File file,
List<String> includes,
List<String> excludes,
String dataspacePath,
String path) |
boolean |
upload(String sessionId,
javax.ws.rs.core.StreamingOutput output,
String encoding,
String dataspace,
String path) |
public static final String VARIABLES_KEY
public static final String FILE_KEY
public SchedulerRestClient(String restEndpointURL)
public SchedulerRestClient(String restEndpointURL, org.jboss.resteasy.client.jaxrs.ClientHttpEngine httpEngine)
public String getRestEndpointURL()
public static void registerGzipEncoding(org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory)
public JobIdData submitXmlAs(String sessionId, InputStream jobXml, String user) throws Exception
Exception
public JobIdData submitXml(String sessionId, InputStream jobXml) throws Exception
Exception
public JobIdData submitXml(String sessionId, InputStream jobXml, Map<String,String> variables) throws Exception
Exception
public JobIdData submitXml(String sessionId, InputStream jobXml, Map<String,String> variables, Map<String,String> genericInfos) throws Exception
Exception
public JobIdData submitJobArchive(String sessionId, InputStream jobArchive) throws Exception
Exception
public JobIdData submitJobArchive(String sessionId, InputStream jobArchive, Map<String,String> variables, Map<String,String> genericInfos) throws Exception
Exception
public boolean pushFile(String sessionId, String space, String path, String fileName, InputStream fileContent) throws Exception
Exception
public void updateLogo(String sessionId, InputStream fileContent) throws NotConnectedRestException
NotConnectedRestException
public void pullFile(String sessionId, String space, String path, String outputPath) throws Exception
Exception
public boolean upload(String sessionId, File file, List<String> includes, List<String> excludes, String dataspacePath, String path) throws Exception
Exception
public boolean upload(String sessionId, javax.ws.rs.core.StreamingOutput output, String encoding, String dataspace, String path) throws Exception
Exception
public boolean download(String sessionId, String dataspacePath, String path, List<String> includes, List<String> excludes, String outputPath) throws Exception
Exception
public boolean download(String sessionId, String dataspacePath, String path, List<String> includes, List<String> excludes, File outputFile) throws Exception
Exception
public boolean delete(String sessionId, String dataspacePath, String path, List<String> includes, List<String> excludes) throws Exception
Exception
public ListFile list(String sessionId, String dataspacePath, String pathname) throws Exception
Exception
public Map<String,Object> metadata(String sessionId, String dataspacePath, String pathname) throws Exception
Exception
public JobIdData submitUrl(String sessionId, String workflowUrl, Map<String,String> variables, Map<String,String> genericInfos) throws Exception
Exception
public List<JobIdDataAndError> submitMultipleUrl(String sessionId, List<WorkflowUrlData> workflowUrlDataList) throws Exception
Exception
public JobIdData reSubmit(String sessionId, String jobId, Map<String,String> variables, Map<String,String> genericInfos) throws NotConnectedRestException
NotConnectedRestException
public SchedulerRestInterface getScheduler()