I am trying to submit a ViewDefenition to the ViewProcessor.
But then am not getting there so far.
I added a new component and grabbed the the ViewProcessor and ViewDefenitionRepository instants.
Next i created a client to submit the ViewDefenition but then am stuck there.
ViewDefinition equityDefenition = _viewDefinitionRepository.getDefinition("Equity Portfolio View"); ViewClient vc = _viewProcessor.createViewClient(new UserPrincipal("Vineeth", "127.0.0.1")); EnumSet<ViewExecutionFlags> flags = EnumSet.of(ViewExecutionFlags.RUN_AS_FAST_AS_POSSIBLE); ViewExecutionOptions executionOptions = ExecutionOptions.singleCycle(Instant.now(), new MarketDataSpecification()); vc.attachToViewProcess(equityDefenition.getUniqueId(),executionOptions);
Here , i tired many combinations of the execution options but none seem to take me there.
From looking into the code i figured out that the ViewDefenition can be run as a single cycle , batch and infinite process.
I am looking for just a run specification.
The above code is erroring out telling “Error with market data provider”.
I am not able to grab the concepts in execution options.
I am not sure what to do here.
I am trying to run the functions over the historical data and it don’t involve live data.
Any pointers or suggestions would be greatly helpful.