43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package org.gcube.data.spd.client.manager;
|
|
|
|
|
|
public class JobTest {
|
|
|
|
/* *//**
|
|
* @param args
|
|
*//*
|
|
public static void main(String[] args) throws Exception{
|
|
ScopeProvider.instance.set("/gcube/devsec");
|
|
getJobFile();
|
|
}
|
|
|
|
private static void getJobFile() throws Exception {
|
|
|
|
ExecutorClient creator = executor().build();
|
|
String link = creator.getResultLink("f63a96b0-e94b-11e2-a63c-e05c5bb7d509||8c788f50-eace-11e2-b167-8f9adc39871b");
|
|
System.out.println("resultLink is "+ link);
|
|
}
|
|
|
|
private static void getJobErorFile() throws Exception {
|
|
|
|
ExecutorClient creator = executor().build();
|
|
String link = creator.getErrorLink("f63a96b0-e94b-11e2-a63c-e05c5bb7d509||8c788f50-eace-11e2-b167-8f9adc39871b");
|
|
System.out.println("errorLink is "+ link);
|
|
}
|
|
|
|
private static void getStatus() throws Exception {
|
|
|
|
ExecutorClient creator = executor().build();
|
|
CompleteJobStatus status = creator.getStatus("f63a96b0-e94b-11e2-a63c-e05c5bb7d509||8c788f50-eace-11e2-b167-8f9adc39871b");
|
|
System.out.println("status is "+ status);
|
|
}
|
|
|
|
private static void getJobs() throws Exception {
|
|
|
|
ExecutorClient creator = executor().build();
|
|
CompleteJobStatus status = creator.getStatus("f63a96b0-e94b-11e2-a63c-e05c5bb7d509||8c788f50-eace-11e2-b167-8f9adc39871b");
|
|
System.out.println("status is "+ status);
|
|
}*/
|
|
|
|
}
|