Updated Client Library
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86308 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d1d7a23510
commit
eadd94647d
4
pom.xml
4
pom.xml
|
@ -155,10 +155,6 @@
|
|||
</dependency>
|
||||
|
||||
|
||||
<!-- Home Library <dependency> <groupId>org.gcube.common</groupId> <artifactId>home-library-jcr</artifactId>
|
||||
</dependency> <dependency> <groupId>org.gcube.common</groupId> <artifactId>home-library</artifactId>
|
||||
</dependency> -->
|
||||
|
||||
<!-- Storage for CSV temp -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.contentmanagement</groupId>
|
||||
|
|
|
@ -56,22 +56,33 @@ public class TestService {
|
|||
|
||||
System.out.println("tabular data id: " + resource.getId().getValue());
|
||||
TabularResourceId resourceId = resource.getId();
|
||||
|
||||
|
||||
System.out.println("------------List Operations------------");
|
||||
|
||||
List<OperationDescriptor> ops = service.getCapabilities();
|
||||
OperationDescriptor csvop = null;
|
||||
for (OperationDescriptor op : ops) {
|
||||
System.out.println(op.getName());
|
||||
if (op.getName().equals("SDMX Codelist import"))
|
||||
if (op.getName().compareTo("SDMX Codelist import")==0)
|
||||
{
|
||||
System.out.println("----Takes");
|
||||
csvop = op;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
System.out.println("------------Invocation------------");
|
||||
|
||||
|
||||
InvocationCreator ic = InvocationCreator.getCreator(csvop);
|
||||
|
||||
OperationInvocation opInvocation = ic.setParameters(
|
||||
getParameterInvocation()).create();
|
||||
|
||||
|
||||
//
|
||||
System.out.println("------------Execute------------");
|
||||
Task task = service.execute(opInvocation, resource.getId());
|
||||
|
||||
System.out.println("------------Check Task------------");
|
||||
while (task.getStatus() != TaskStatus.FAILED
|
||||
&& task.getStatus() != TaskStatus.SUCCEDED) {
|
||||
System.out.println(task.getStatus() + " "
|
||||
|
@ -79,7 +90,9 @@ public class TestService {
|
|||
|
||||
Thread.sleep(3000);
|
||||
}
|
||||
|
||||
|
||||
System.out.println("------------Show Task------------");
|
||||
|
||||
System.out.println(task.getStatus() + " "
|
||||
+ task.getStartTime().getTime() + " "
|
||||
+ task.getEndTime().getTime());
|
||||
|
|
Loading…
Reference in New Issue