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

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


  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


      storageInfo.setBatcher(batcher);
     
      List<ProcessorPoolInfo> enginepools = new ArrayList<ProcessorPoolInfo>();
      for (ProcessorPoolMXBean pool: engine.getProcessorPools()){
        boolean isPersistent = pool instanceof PersistentPriorityProcessorPoolMXBean;
        enginepools.add(new ProcessorPoolInfo(
            pool.getId(),
            isPersistent?ProcessorPoolTyp.PERSISTENT:ProcessorPoolTyp.TRANSIENT,
            isPersistent?((PersistentPriorityProcessorPoolMXBean)pool).getLowerThreshold():0,
            isPersistent?((PersistentPriorityProcessorPoolMXBean)pool).getUpperThreshold():0,
            isPersistent?((PersistentPriorityProcessorPoolMXBean)pool).getUpperThresholdReachedWaitMSec():0,
View Full Code Here

TOP

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

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.