Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. @POST
  2. @Path("module")
  3. @Consumes(MediaType.APPLICATION_JSON)
  4. @Produces(MediaType.APPLICATION_JSON)
  5. public List<ModuleProcCount> getInput(int jobId) throws IOException{
  6. try (Dbc dbc = vehmPool.getDbc()){
  7. List<ModuleProcCount> pusher = statements.inMod(dbc, jobId);
  8. return pusher;
  9. }
  10.  
  11. }
  12.  
  13. $scope.sendJobId = function(cellVal) {
  14. data.jobId = cellVal;
  15. $http.post("rest/performance/module", data.jobId).then(function(response){
  16. $scope.pusher = response.data;
  17.  
  18. });
  19. }
  20.  
  21. <table id="Table" class="JobID-table" style="text-align:center" >
  22. <tr class="table-Header">
  23. <th>JOB ID</th>
  24. <th>TIME FOR ALL MODULES(MILLISECONDS)</th>
  25. </tr>
  26. <tr class="jobID-Table-tr" ng-repeat="p in puller | orderBy : '-modCount'">
  27.  
  28. <td ng-click="sendJobId(p.modName)" class={{p.cellClass}}>
  29. {{p.modName}}
  30. </td>
  31.  
  32. <td class={{p.cellClass}}>
  33. {{p.modCount}}
  34. </td>
  35.  
  36.  
  37. </tr>
  38.  
  39. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement