Changeset 526
- Timestamp:
- Nov 4, 2014, 4:41:26 PM (10 years ago)
- Location:
- trunk/zoo-project/zoo-services/hello-java
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-services/hello-java/HelloJava.java
r1 r526 32 32 HashMap tmp=(HashMap)(inputs.get("S")); 33 33 String v=tmp.get("value").toString(); 34 hm1.put("value", "Hello "+v+" from JAVA World !!");34 hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!")); 35 35 outputs.put("Result",hm1); 36 return 3; 37 } 36 return ZOO.SERVICE_SUCCEEDED; 37 } 38 public static int JavaLongProcess(HashMap conf,HashMap inputs, HashMap outputs) { 39 HashMap hm1 = new HashMap(); 40 hm1.put("dataType","string"); 41 HashMap tmp=(HashMap)(inputs.get("S")); 42 String v=tmp.get("value").toString(); 43 Integer i; 44 for(i=0;i<100;i+=5){ 45 ZOO.updateStatus(conf,String.valueOf(i),"Currently executing tasks "+String.valueOf(i/5)+".."); 46 try{ 47 Thread.sleep(2000); 48 }catch(java.lang.InterruptedException e){ 49 }finally{ 50 } 51 } 52 hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!")); 53 outputs.put("Result",hm1); 54 return ZOO.SERVICE_SUCCEEDED; 55 } 38 56 } 57
Note: See TracChangeset
for help on using the changeset viewer.