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

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


   
  }

  @Override
  public List<ProcessingEngineInfo> getProccessingEngineList() throws RemoteException {
    WorkflowRepositoryInfo repositoryInfo = new WorkflowRepositoryInfo();
    repositoryInfo.setWorkflowRepositorTyp(WorkflowRepositorTyp.FILE);
    repositoryInfo.setSrcPaths(new ArrayList<String>());
    return Arrays.asList(
        new ProcessingEngineInfo(EngineTyp.PERSISTENT,"peId1",repositoryInfo,new DependencyInjectorInfo("POJO"), "None", new StorageInfo(), new ProcessorPoolInfo("poId1",ProcessorPoolTyp.PERSISTENT)),
        new ProcessingEngineInfo(EngineTyp.TRANSIENT,"peId2",repositoryInfo,new DependencyInjectorInfo("POJO"), "None", new StorageInfo(), new ProcessorPoolInfo("poId2",ProcessorPoolTyp.TRANSIENT), new ProcessorPoolInfo("poId3",ProcessorPoolTyp.TRANSIENT))
        );
  }
View Full Code Here


  }
 
  private List<ProcessingEngineInfo> createProcessingEngineInfos(){
    ArrayList<ProcessingEngineInfo> result = new ArrayList<ProcessingEngineInfo>();
    for (ProcessingEngineMXBean engine: engines.values()){
      WorkflowRepositoryInfo workflowRepositoryInfo = new WorkflowRepositoryInfo();
      WorkflowRepositoryMXBean workflowRepository = engine.getWorkflowRepository();
      workflowRepositoryInfo.setName(workflowRepository.getDescription());
      workflowRepositoryInfo.setSrcPaths(Collections.<String>emptyList());
      workflowRepositoryInfo.setWorkflowRepositorTyp(WorkflowRepositorTyp.UNKOWN);
      if (workflowRepository instanceof FileBasedWorkflowRepositoryMXBean){
        workflowRepositoryInfo.setWorkflowRepositorTyp(WorkflowRepositorTyp.FILE);
        FileBasedWorkflowRepositoryMXBean fileBasedRepo = (FileBasedWorkflowRepositoryMXBean)workflowRepository;
        List<String> srcPaths = new ArrayList<String>(fileBasedRepo.getSourceDirs());
        srcPaths.addAll(fileBasedRepo.getSourceArchiveUrls());
        workflowRepositoryInfo.setSrcPaths(srcPaths);
      }
     
      DependencyInjectorInfo dependencyInjectorInfo = new DependencyInjectorInfo(engine.getDependencyInjectorType());
     
      StorageInfo storageInfo = new StorageInfo();
View Full Code Here

TOP

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

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.