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

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


  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


        workflowRepositoryInfo.setSrcPaths(srcPaths);
      }
     
      DependencyInjectorInfo dependencyInjectorInfo = new DependencyInjectorInfo(engine.getDependencyInjectorType());
     
      StorageInfo storageInfo = new StorageInfo();
     
      BatcherInfo batcher= new BatcherInfo();
      if (engine instanceof PersistentProcessingEngineMXBean){
        DBStorageMXBean dbStorageTmp = ((PersistentProcessingEngineMXBean)engine).getDBStorage();
        storageInfo.setDescription(dbStorageTmp.getDescription());
        if (dbStorageTmp instanceof ScottyDBStorageMXBean ){
          BatcherMXBean batcherMXBean = ((ScottyDBStorageMXBean)dbStorageTmp).getBatcherMXBean();
          if (batcherMXBean != null) {
            batcher.setDescription(batcherMXBean.getDescription());
            batcher.setNumThreads(batcherMXBean.getNumThreads());
          }
        }
      }
     
      storageInfo.setBatcher(batcher);
     
      List<ProcessorPoolInfo> enginepools = new ArrayList<ProcessorPoolInfo>();
      for (ProcessorPoolMXBean pool: engine.getProcessorPools()){
        boolean isPersistent = pool instanceof PersistentPriorityProcessorPoolMXBean;
        enginepools.add(new ProcessorPoolInfo(
View Full Code Here

TOP

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

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.