Package com.opengamma.util

Examples of com.opengamma.util.PoolExecutor$CompletionListener


        return Collections.singletonMap(identifier, uid);
      } else {
        return Collections.emptyMap();
      }
    }
    final PoolExecutor executor = PoolExecutor.instance();
    if (executor != null) {
      return resolveExternalIdsMultiThread(executor, resolver, identifiers, versionCorrection);
    } else {
      return resolveExternalIdsSingleThread(resolver, identifiers, versionCorrection);
    }
View Full Code Here


        return Collections.singletonMap(identifier, uid);
      } else {
        return Collections.emptyMap();
      }
    }
    final PoolExecutor executor = PoolExecutor.instance();
    if (executor != null) {
      return resolveObjectIdsMultiThread(executor, resolver, identifiers, versionCorrection);
    } else {
      return resolveObjectIdsSingleThread(resolver, identifiers, versionCorrection);
    }
View Full Code Here

  @Override
  public AtVersionCorrection atVersionCorrection(final VersionCorrection versionCorrection) {
    return new AtVersionCorrection() {

      private PoolExecutor.Service<Void> createService() {
        final PoolExecutor executor = PoolExecutor.instance();
        if (executor != null) {
          return executor.createService(null);
        } else {
          return null;
        }
      }
View Full Code Here

    ArgumentChecker.notNull(functionRepositoryCompiler, "functionRepositoryCompiler");
    ArgumentChecker.notNull(functionCompilationContext, "functionCompilationContext");
    _rawFunctionRepository = functionRepository;
    _functionRepositoryCompiler = functionRepositoryCompiler;
    _functionCompilationContext = functionCompilationContext;
    _executorService = new PoolExecutor(Math.max(Runtime.getRuntime().availableProcessors(), 1), "CFS");
  }
View Full Code Here

        return null;
      } else {
        s_logger.debug("Checking {} of {} resolutions for changed objects", toCheck.size(), previousResolutions.size());
      }
    }
    PoolExecutor previousInstance = PoolExecutor.setInstance(getProcessContext().getFunctionCompilationService().getExecutorService());
    final Map<ComputationTargetReference, ComputationTargetSpecification> specifications = getProcessContext().getFunctionCompilationService().getFunctionCompilationContext()
        .getRawComputationTargetResolver().getSpecificationResolver().getTargetSpecifications(toCheck, versionCorrection);
    PoolExecutor.setInstance(previousInstance);
    t += System.nanoTime();
    Map<UniqueId, ComputationTargetSpecification> invalidIdentifiers = null;
View Full Code Here

TOP

Related Classes of com.opengamma.util.PoolExecutor$CompletionListener

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.