Package com.opengamma.engine.cache.DefaultViewComputationCacheSource

Examples of com.opengamma.engine.cache.DefaultViewComputationCacheSource.MissingValueLoader


    final IdentifierMap identifiers = new InMemoryIdentifierMap();
    final Set<Integer> missing = new HashSet<Integer>();
    final DefaultViewComputationCacheSource source = new DefaultViewComputationCacheSource(identifiers,
        FudgeContext.GLOBAL_DEFAULT, createInMemoryFudgeMessageStoreFactory(FudgeContext.GLOBAL_DEFAULT));
    final UniqueId viewCycleId = UniqueId.of("Test", "ViewCycle");
    source.setMissingValueLoader(new MissingValueLoader() {

      @Override
      public FudgeMsg findMissingValue(final ViewComputationCacheKey cache, final long identifier) {
        assertEquals(viewCycleId, cache.getViewCycleId());
        assertEquals("Default", cache.getCalculationConfigurationName());
View Full Code Here

TOP

Related Classes of com.opengamma.engine.cache.DefaultViewComputationCacheSource.MissingValueLoader

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.