Package de.scoopgmbh.copper.monitoring.core.model

Examples of de.scoopgmbh.copper.monitoring.core.model.WorkflowStateSummary


  private static final int MAX_DATA_POINTS = 30;
  @Override
  public void showFilteredResult(List<WorkflowStateSummary> filteredlist, EngineLoadFilterModel usedFilter) {
   
    WorkflowStateSummary copperLoadInfo = filteredlist.get(0)
    Date date = new Date();
        //new SimpleDateFormat("HH:mm:ss").format(new Date());
   
    for (Entry<WorkflowInstanceState,Integer> entry: copperLoadInfo.getNumberOfWorkflowInstancesWithState().entrySet()){
      Series<Number, Number> axis = stateToAxis.get(entry.getKey());
      ObservableList<Data<Number, Number>> data = axis.getData();
      data.add(new XYChart.Data<Number, Number>(date.getTime(), entry.getValue()));
      if (data.size() > MAX_DATA_POINTS) {
        data.remove(0);
View Full Code Here


        assert workflowRepositoryId != null : "fx:id=\"workflowRepositoryId\" was not injected: check your FXML file 'ProcessingEngine.fxml'.";
        assert workflowRepositoryPaths != null : "fx:id=\"workflowRepositoryPaths\" was not injected: check your FXML file 'ProcessingEngine.fxml'.";
        assert workflowRepositoryTyp != null : "fx:id=\"workflowRepositoryTyp\" was not injected: check your FXML file 'ProcessingEngine.fxml'.";

      
        WorkflowStateSummary workflowStateSummary = dashboardResultModel.getStateSummery(processingEngineInfo.getId());


        state_ENQUEUED.setText(Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.ENQUEUED)));
        state_ERROR.setText(Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.ERROR)));
        state_FINISHED.setText(Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.FINISHED)));
        state_INVALID.setText(Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.INVALID)));
        state_WAITING.setText(Integer.toString(workflowStateSummary.getCount(WorkflowInstanceState.WAITING)));
       
        pools.getStyleClass().add("floating");//transparent tabheader
        updateInfo();
        batcherNumSet.setOnAction(new EventHandler<ActionEvent>() {
      @Override
View Full Code Here

    }
   
    ArrayList<WorkflowSummary> result = new ArrayList<WorkflowSummary>();
    WorkflowSummary workflowSummery = new WorkflowSummary("",10,
        new WorkflowClassMetaData("WorkflowClass1","alias",0L,+(long)(Math.random()*100),0L,""),
        new WorkflowStateSummary(map));
    result.add(workflowSummery);
   
    return result;
  }
View Full Code Here

    int counter=0;
    for (WorkflowInstanceState workflowInstanceState: WorkflowInstanceState.values()){
      map.put(workflowInstanceState, counter*10+((int)(Math.random()*10)));
      counter++;
    }
    return new WorkflowStateSummary(map);
  }
View Full Code Here

  public void test_selectTotalWorkflowSummary() throws SQLException, Exception{
    DummyPersistentWorkflow1 wf = new DummyPersistentWorkflow1("id", "ppoolId", "1", 1);
    databaseDialect.insert(wf, datasource.getConnection());
   
    try {
      WorkflowStateSummary selectedWorkflowStateSummary = monitoringDbDialect.selectTotalWorkflowStateSummary(datasource.getConnection());
      assertTrue(selectedWorkflowStateSummary.getNumberOfWorkflowInstancesWithState().size()>0);
    } catch (SQLException e) {
      throw new RuntimeException(e);
    }
   
  }
View Full Code Here

        int status = result.getInt(1);
        int count = result.getInt(2);
        numberOfWorkflowInstancesWithState.put(DBProcessingStateWorkaround.fromKey(status).asWorkflowInstanceState(), count);
      }
      result.close();
      return new WorkflowStateSummary(numberOfWorkflowInstancesWithState);
    } catch (SQLException e) {
      throw new RuntimeException(e);
    } finally {
      de.scoopgmbh.copper.db.utility.JdbcUtils.closeStatement(selectStmt);
    }
View Full Code Here

        String instanceClassname=resultSet.getString(1);
        WorkflowSummary summary = classNameToSummary.get(instanceClassname);
        if (summary==null){
          summary= new WorkflowSummary();
          summary.setClassDescription(new WorkflowClassMetaData(instanceClassname, "", 1L, 1L, 1L,""));
          summary.setStateSummary(new WorkflowStateSummary(new HashMap<WorkflowInstanceState, Integer>()));
          classNameToSummary.put(instanceClassname, summary);
          for (WorkflowInstanceState s : WorkflowInstanceState.values())
            summary.getStateSummary().getNumberOfWorkflowInstancesWithState().put(s,0);
        }
        int status = resultSet.getInt(2);
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.core.model.WorkflowStateSummary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.