Package com.opengamma.engine.view.cycle

Examples of com.opengamma.engine.view.cycle.ComputationCacheResponse$Meta


      }

      final ComputationCycleQuery cacheQuery = new ComputationCycleQuery();
      cacheQuery.setCalculationConfigurationName(entry.getKey());
      cacheQuery.setValueSpecifications(requiredSpecs);
      final ComputationCacheResponse computationCacheResponse = viewCycle.queryComputationCaches(cacheQuery);

      if (computationCacheResponse.getResults().size() != requiredSpecs.size()) {
        s_logger.debug("Failed to get all results from computation cache");
      }

      final Map<TKey, Pair<ValueSpecification, Object>> infos = Maps.uniqueIndex(computationCacheResponse.getResults(),
          new Function<Pair<ValueSpecification, Object>, TKey>() {

            @Override
            public TKey apply(final Pair<ValueSpecification, Object> from) {
              return getKey(from.getFirst());
View Full Code Here


  }

  @POST
  @Path(PATH_QUERY_CACHES)
  public Response queryComputationCaches(ComputationCycleQuery query) {
    ComputationCacheResponse response = _cycle.queryComputationCaches(query);
    return responseOkFudge(response);
  }
View Full Code Here

  }

  //-------------------------------------------------------------------------

  public Map<String, Object> processViewCycle(final ViewCycle viewCycle, final Long resultTimestamp) {
    final ComputationCacheResponse valueResponse = viewCycle.queryComputationCaches(_cacheQuery);
    final Map<String, Object> rows = new HashMap<String, Object>();
    for (final Pair<ValueSpecification, Object> valuePair : valueResponse.getResults()) {
      final ValueSpecification specification = valuePair.getFirst();
      final Object value = valuePair.getSecond();

      final IntSet rowIds = _rowIdMap.get(specification);
      if (rowIds == null) {
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.cycle.ComputationCacheResponse$Meta

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.