Examples of MissingValueLoader


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
Copyright © 2018 www.massapi.com. 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.